2

Based in this post:

Google Plus Album Urls

How I can get the response in JSON format, directly from the Google servers? (that means: without parse the xml and convert to JSON from my server).

Community
  • 1
  • 1
Imaky
  • 1,227
  • 1
  • 16
  • 36
  • Looks like everything is in Google+ Api is in JSON. https://developers.google.com/+/api/ and here shows a call for a photo: https://developers.google.com/+/api/#partial-response – BingeBoy May 05 '13 at 21:30
  • Yes I know, but I need to use the Picasa API, not the Google Plus API :(. – Imaky May 05 '13 at 21:39

1 Answers1

8

As you've noticed, you need to use the Picasa Web Albums API for now, until they get around to a Google+ API. Picasa Web Albums API uses the older Google Data Protocol, which was designed around XML.

You can have Google's servers convert the XML to JSON by providing an ?alt=json parameter to the URL. The rules for how the XML is converted to JSON, as well as other information about this, are documented at https://developers.google.com/gdata/docs/json

Prisoner
  • 49,922
  • 7
  • 53
  • 105