2

基于这篇文章:

Google Plus 专辑网址

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

4

1 回答 1

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

于 2013-05-05T21:48:29.783 回答