基于此帖子:
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+相册中获取照片
发布评论