【发布时间】:2015-03-18 11:40:42
【问题描述】:
我正在使用 oAuth 2.0 开发联系人的 API。我只想获取几个字段而不是整个数据集。它在 OAuth 操场上运行良好 https://developers.google.com/oauthplayground
但是,当使用 Jquery ajax 请求它时(在获取令牌之后),它给了我错误 Fields query parameter is not supported。没有&fields= 参数,它可以正常工作..
以下是有关 fields 参数的详细信息:
https://developers.google.com/gdata/docs/2.0/reference#PartialResponse
顺便说一句,ajax 请求的原因在这里很好地列出了: Getting google contacts with javascript
【问题讨论】:
-
为什么不直接获取所有内容?
标签: oauth-2.0 google-oauth google-contacts-api