Get photos from a Google+ album, in JSON format

依然范特西╮ 提交于 2019-12-11 02:21:17

问题


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).


回答1:


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



来源:https://stackoverflow.com/questions/16389174/get-photos-from-a-google-album-in-json-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!