admin管理员组文章数量:1332403
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).
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).
Share Improve this question edited May 23, 2017 at 12:07 CommunityBot 11 silver badge asked May 5, 2013 at 21:10 ImakyImaky 1,2571 gold badge16 silver badges36 bronze badges 2- Looks like everything is in Google+ Api is in JSON. developers.google./+/api and here shows a call for a photo: developers.google./+/api/#partial-response – BingeBoy Commented May 5, 2013 at 21:30
- Yes I know, but I need to use the Picasa API, not the Google Plus API :(. – Imaky Commented May 5, 2013 at 21:39
1 Answer
Reset to default 8As 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./gdata/docs/json
本文标签: javascriptGet photos from a Google albumin JSON formatStack Overflow
版权声明:本文标题:javascript - Get photos from a Google+ album, in JSON format - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742232612a2437496.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论