1

在发送到 Google ClientLogin 的 HTTPS 请求中https://www.google.com/accounts/ClientLogin

我发送一个名为“服务”的带有 https 请求的参数。这将是我需要进行身份验证的 Google 服务。

在我的应用程序中,我希望被授予对“联系人”和“谷歌文档”服务的访问权限。我可以向 ClientLogin 发送两个“服务”参数请求吗?每个服务一个?这会起作用还是有另一种更干净的解决方案?

4

1 回答 1

0

根据 Google 员工的说法,无法获得对多种服务有效的令牌:

A Client Login token only works for a single service, but you can 
request more than one token. For example one for Calendar (cl) and 
another for Contacts (cp) then you can use the appropriate token for 
the following services requests. 

我在文档中找不到有关仅通过一个请求为不同服务获取多个令牌的任何内容,因此我认为最干净的方法可能只是执行 2 个请求并保留 2 个令牌。

于 2012-08-01T21:07:19.293 回答