Hi Ben,

I don't have code handy that builds up the AuthSub requests manually,
though I'm happy to come up with some if it gets to that :)

You'll want to build up a request for the web browser that has secure=0
and session=1
eg:
https://www.google.com/accounts/AuthSubRequest?next=http%3A%2F%2Flocalhost%2Fcalenderdemo.php&scope=http://www.google.com/calendar/feeds/&secure=0&session=1

You'll click through that and it will pass the token in the query
string (as you are aware).

Take that token and attach it as the Authorization header and make a
request to:
http://code.google.com/apis/accounts/AuthForWebApps.html#AuthSubSessionToken

The response will have the token in it.  Grab that token and form the
Authorization header (as you have it in your code above) and make the
request to come up with the calendar feed.

I'm working on an example using authsub with the .NET client library --
there is an AuthSubUtil class in SVN that's very helpful, but needs a
few minor tweaks.

Cheers,

-Ryan


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to