Curso Python DGA 2011/servicios web/ejercicios clase/3rdparty

De WikiEducator
Saltar a: navegación, buscar

REST

Ejemplo accediendo a Flickr.

Solicitar un API Key :

  http://www.flickr.com/services/apps/create/apply/

Vamos a usar el metodo flickr.photos.getRecent

Con esta URL se puede probar que funciona bien el API_KEY:

  http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=<API_KEY>

JSON

Ejemplo accediendo a Microsoft API Translator.

Solicitar un API Key :

  http://www.bing.com/developers

Vamos a usar el método Translate.

Con esta URL se puede probar que funciona bien:

  http://api.microsofttranslator.com/V2/Ajax.svc/Translate?text=Hola%20Mundo&from=es&to=en&appId=<API_KEY>

Google APIs

  • Librerías para acceder al API:
  http://code.google.com/p/google-api-python-client
  http://code.google.com/p/gdata-python-client
  • Servicios accesibles:
 Google Custom Search API
 YouTube Data API
 Google Maps Data API
 URL shortener API
 Google Calendar API 	
 Google Documents List Data API
 Picasa Web Albums Data API 
 Blogger Data API 	
 Google Book Search API 	
 Google Analytics API 	
 Google Apps Provisioning API 	
 Google Base Data API
 Google Code Search Data API 	
 Google Contacts API 
 ...	
  • Custom Search
  • Maps
  • URL shortener
  • Calendar
  • Docs
  • Youtube

Twitter