Istagram api le foto di un profilo

Per chi vuole pubblicare le foto del proprio profilo o di un proprio cliente:

https://api.instagram.com/v1/users/id_user/media/recent/?client_id=tuo_id_key che prendi qui: http://instagram.com/developer/clients/manage/#

L'id_user lo ricaviamo da qui:
https://api.instagram.com/v1/users/search?q=nomeuser&client_id=tuo_id_key
 
il tutto lo passiamo con curl e json
 
Buon divertimento con queste api 

Google Place API in xml e json e lista delle categorie.

Ed ecco il codice per interrogare google place, ristoranti a Fiumicino:

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.770364,12.221129&radius=5000&types=food&sensor=false&key=tuakey

Hotel a Fiumicino
https://maps.googleapis.com/maps/api/place/nearbysearch/xml?location=41.770364,12.221129&radius=5000&types=lodging&sensor=false&key=tuakey in questo caso i risultati sono in xml

Qui trovate l'elenco delle categorie presenti: https://developers.google.com/places/documentation/supported_types

i risultati sono ad una distanza, radius, di 5km.


Api expedia hotel in base alla latitudine e longitudine

Ecco il codice Api di Expedia che visualizza gli hotel in base alla lotitudine e longitudine inserita:

http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=99&apiKey=xxxxxxxxx&cid=443449&locale=it_IT&numberOfResults=3&searchRadius=50&supplierCacheTolerance=MED_ENHANCED&arrivalDate=09/04/2014&departureDate=09/05/2014&room1=2&latitude=47.6062&longitude=-122.3321

Da notare che sono stati inseriti il giorno di arrivo ed uno di partenza.

api: short url, minuscolo e anche personalizzato

Per chi non voglia di lavorare con Goo.gl ecco un api per avere uno short url personalizzato e minuscolo.

Formato json:
http://is.gd/create.php?format=json&url=www.itineraridipesca.it/scheda_cattura.php?cattura=254&shorturl=xxxxppidpx

Formato xml:
http://is.gd/create.php?format=xml&url=www.itineraridipesca.it/scheda_cattura.php?cattura=254&shorturl=xxxxppidpx

Da leggere con una chiamata curl, tipo questa:

$ch = curl_init();
// Disable SSL verification
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
// Will return the response, if false it print the response
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Set the url
curl_setopt($ch, CURLOPT_URL,$url);
// Execute
$result=curl_exec($ch);

// Will dump a beauty json :3
#var_dump($result);
$json = json_decode($result);
$errorcode=$json->errorcode;
$shorturl=$json->shorturl;