开发者

Google ClientLogin authorization for multiple services

in the HTTPS request sent to Google ClientLogin https://www.google.com/accounts/ClientLogin

i send a parameter with https request named "service". this will be the Google service i need to authenticate with.

in my application i want to be gran开发者_开发技巧ted access to both "contacts" and "google docs" services. can i send two "service" parameters request to ClientLogin? one for each service? will this work or is there another more clean solution?


According to a Google employee it is not possible to get a token that is valid for multiple services:

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. 

I can't find anything in the documentation about getting multiple tokens for different services with only one request so I think the cleanest way is probably just doing 2 requests and keeping the 2 tokens.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜