以JSON格式从Google+相册中获取照片

编程入门 行业动态 更新时间:2024-10-23 20:25:52
本文介绍了以JSON格式从Google+相册中获取照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

基于此帖子:

Google Plus相册Urls

如何直接从Google服务器获取JSON格式的响应? (这意味着:无需解析xml并从我的服务器转换为JSON).

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

推荐答案

您已经注意到,您需要暂时使用Picasa网络相册API,直到他们使用Google+ API. Picasa网络相册API使用了较早的Google数据协议,该协议是围绕XML设计的.

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.

您可以通过向URL提供?alt = json参数来让Google的服务器将XML转换为JSON. https中记录了如何将XML转换为JSON的规则以及与此有关的其他信息. ://developers.google/gdata/docs/json

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 developers.google/gdata/docs/json

更多推荐

以JSON格式从Google+相册中获取照片

本文发布于:2023-10-12 17:20:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1485365.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:格式   照片   相册   JSON   Google

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!