We just released a feature we call multi-scope auth tokens. Multi-scope auth tokens allow your web application to be authorized to access a user's data for more than one service at a time. This same functionality is available in both AuthSub and in OAuth, which we announced yesterday.
Let's say you want to pull in a user's Google Calendar and find relevant Picasa Web Albums pictures for each event on their calendar. Previously, you needed to generate two AuthSubRequest URLs and have your visitors authorize access to their photos and calendars separately. Now, it's all done in one step.
How do you accomplish this?
It's easy. Simply specify two (or more) separate scopes separated by a space character (which ends up being encoded as a %20).
For AuthSub, the scope is specified as part of the AuthSubRequest URL. Here's an example:
https://www.google.com/accounts/AuthSubRequest?What is the end-user experience?
next=http://localhost/authsub
&scope=http://www.google.com/calendar/feeds%20
http://picasaweb.google.com/data
&secure=1
&session=1

Try it out -- and post about your mashups in the Google Groups for the APIs you're using.

7 comments:
I finally got a chance to give it a try. Actually, it is not fully
working.
My code is like this
String feedURLString = CalendarService.CALENDAR_ROOT_URL
+" http://spreadsheets.google.com/feeds/"
+" http://docs.google.com/feeds/documents/private/full/";
After I get the token, I can operate Calendar and spreadsheets. But,
not the documents. It keeps telling that the scope is wrong.
So, did I do anything wrong? I tried to remove the spreadsheets one.
But, still, it does not work.
Does anybody have the same experience?
Best
CJ
@CJ
Be wary of the trailing slash at the end of your documents URL. You have http://docs.google.com/feeds/documents/private/full/, though this is typically requested as http://docs.google.com/feeds/documents/private/full.
If you request a token based on your current feedURLString value, you can only retrieve the feed with the trailing slash.
(I actually messed this up myself the first time I tried to reproduce the issue you're reporting)
You might be better off using http://docs.google.com/feeds/ or similar in your AuthSub scope string.
Cheers,
-Ryan
thanks
منتديات
welcome to the wow gold, cheap WoW Power Leveling, service site,wotlk gold buy cheap wow gold,wow gold,world of warcraft power leveling buy wow gold
If you wow gold were in wow gold any doubt buy wow gold that the buy wow gold God Wars cheap wow gold Dungeon was cheap wow gold challenge enough wow power leveling for you, wow power leveling look no further power leveling than the giant power leveling demon, K’ril wow gold Tsutsaroth. Once buy wow gold thought of as cheap wow gold nothing more world of warcraft gold confirm his existence.
sohbet
sohbet
Mp3
Mp3
Fıkra
güzel sözler
nur sohbet
guzel sozler
Arkadaşlık Siteleri
Sohbet Ekle
islami sohbet
IRCAsk Forum
IRCAsk Directory
thanks http://lotosonuclari.com http://arabalife.com
Post a Comment