如何更改 dotNetOpenAuth GoogleAddressBook 示例以检索超过 25 个联系人?
您建议我如何继续更改 GoogleAddressBook 示例以检索 > 25 个联系人?
如果这仍然有效,我该如何在提供的 DotNetOpenAuth 示例中传递此参数?
How do you suggest I proceed in changing the GoogleAddressBook sample to retrieve > 25 contacts?
Google suggests using AutoPaging=true on http://code.google.com/apis/contacts/docs/2.0/developers_guide_dotnet.html#retrieving_without_query
If this is still valid, how can I go about passing this parameter in the DotNetOpenAuth sample provided?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AutoPaging 属性就是:一个属性。它不是查询参数,除非您使用 Google .NET 库(据我所知,该库不使用 OAuth),否则该属性不可用。
最新版本的 Google 通讯录协议文档状态:
另一个文档页面解释了还有一个
start-index
参数,因此您仍然可以一次检索联系人块(如果您愿意)。因此,您所需要做的就是在发送的请求中添加
?max-results=500
或其他一些大数字。我已经更新了 DotNetOpenAuth 示例以简化此操作。The AutoPaging property is just that: a property. It isn't a query parameter, and this property isn't available unless you're using the Google .NET library (which to my knowledge doesn't use OAuth).
The latest version of the protocol documentation for Google Contacts states:
Another documentation page explains that there is also a
start-index
parameter, so you can still retrieve blocks of contacts at a time if you so choose.So it looks like all you need to do is add
?max-results=500
or some other high number to the request you send out. I've updated the DotNetOpenAuth sample to make this easy.