Listado Proyectos/Obras

Todos los Proyectos/Obras.

GET https://api.appsat.net/v1/Proyectos/ | GET https://api.appsat.net/v1/Proyectos/?upd=2020-09-27 13:00:00 | GET https://api.appsat.net/v1/Proyectos/?page=1&rowsPerPage=500

curl "https://api.appsat.net/v1/Proyectos/" \
  -H "accept: */*" \
  -H "key: " \
  -H "Content-Type: application/json"
var xhr = new XMLHttpRequest();
xhr.addEventListener('load', function(e) {
  var response = e.target.responseText;
  console.log(response);
});
xhr.addEventListener('error', function(e) {
  console.error('Request errored with status', e.target.status);
});
xhr.open('GET', 'https://api.appsat.net/v1/Proyectos/');
xhr.setRequestHeader('accept','*/*');
xhr.setRequestHeader('key','');
xhr.setRequestHeader('Content-Type','application/json');
xhr.send();
import requests

url = 'https://api.appsat.net/v1/Proyectos/'
headers = {'accept': '*/*','key': '','Content-Type': 'application/json'}

req = requests.get(url, headers=headers)

print(req.status_code)
print(req.headers)
print(req.text)
#include <stdio.h>
#include <curl/curl.h>

int main(void)
{
	CURL *curl;
	CURLcode res;

	curl = curl_easy_init();
	curl_easy_setopt(curl, CURLOPT_URL, "https://api.appsat.net/v1/Proyectos/");
	curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
	/* if redirected, tell libcurl to follow redirection */
	curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);

	struct curl_slist *headers = NULL;
	headers = curl_slist_append(headers, "accept: */*");
	headers = curl_slist_append(headers, "key: value");
	headers = curl_slist_append(headers, "Content-Type: application/json");
	curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);

	/* Perform the request, res will get the return code */
	res = curl_easy_perform(curl);
	if (res != CURLE_OK) {
		fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res));
	}
	/* Clean up after yourself */
	curl_easy_cleanup(curl);
	return 0;
}
/* See: http://stackoverflow.com/a/2329792/1127848 of how to read data from the response. */
URL url = new URL("https://api.appsat.net/v1/Proyectos/");
HttpsURLConnection con = (HttpsURLConnection) url.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("accept", "*/*");
con.setRequestProperty("key", "value");
con.setRequestProperty("Content-Type", "application/json");

int status = con.getResponseCode();
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer content = new StringBuffer();
while((inputLine = in.readLine()) != null) {
	content.append(inputLine);
}
in.close();
con.disconnect();
System.out.println("Response status: " + status);
System.out.println(content.toString());
[{
    "proyecto_id": 1,
    "empresa_id": 1,
    "sucursal_id": 1,
    "forma_de_pago_id": 2,
    "usuario_id": 1,
    "cliente_id": 5751,
    "cliente_cuenta_bancaria_id": 72,
    "proyecto_usuario_id": 1,
    "proyecto_denominacion": "Obra XXXX",
    "proyecto_persona_de_contacto": "Pedro Rodríguez",
    "proyecto_persona_de_contacto_nif": "40NNNNNNP",
    "proyecto_persona_de_contaco_telefono": "972219161",
    "proyecto_persona_de_contaco_movil": "600000000",
    "proyecto_persona_de_contaco_fax": "",
    "proyecto_persona_de_contaco_email": "[email protected]",
    "proyecto_persona_de_contaco_direccion": "Carrer del Castell de Montgrí",
    "proyecto_persona_de_contaco_direccion_numero": "6",
    "proyecto_persona_de_contaco_direccion_piso": "",
    "proyecto_persona_de_contaco_codigo_postal": "17007",
    "proyecto_persona_de_contaco_localidad": "Girona",
    "proyecto_persona_de_contaco_provincia": "Girona",
    "proyecto_persona_de_contaco_pais": "España",
    "proyecto_persona_de_contaco_latitud": "41.9949612",
    "proyecto_persona_de_contaco_longitud": "2.7997323",
    "proyecto_dias_de_pago_opcion_1": "",
    "proyecto_dias_de_pago_opcion_2": "",
    "proyecto_dias_de_pago_opcion_3": "",
    "proyecto_retencion": "0",
    "proyecto_varios_clientes": 1,
    "proyecto_estado": "abierto",
    "proyecto_fecha_start": "0000-00-00",
    "proyecto_fecha_end": "0000-00-00",
    "proyecto_fecha_add": "2020-01-15 16:23:13",
    "proyecto_fecha_upd": "2020-12-09 12:47:06",
    "proyecto_delete": 0,
    "proyecto_custom_id": ""  
}]