Ver Mensaje Individual
  #9 (permalink)  
Antiguo 06/04/2015, 13:28
Pelao
 
Fecha de Ingreso: abril-2003
Mensajes: 260
Antigüedad: 21 años
Puntos: 1
Respuesta: Get API ubicacion servidor

Ahi lo hice con un curl, gracias!

function get_data($url) {
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}

$returned_content = get_data('http://http://www.ddd.com.ar/api/cliente42322/reservations?access_token=xxxxxxxxxxxxxx&since=201 5-04-05T15:05:05Z');
__________________
Bye!