My code has go through the retrieving of the initial token from
AuthSubRequest.
I then send it back to AuthSubSessionToken to get the permanent
session token.
Which came back fine, all is well.
I'm now trying to grab a list of my calendars with the following code.
authsub_token = params[:token]
http = Net::HTTP.new('www.google.com', 80)
path = "/calendar/feeds/default/allcalendars/full"
headers = {'Authorization' => "AuthSubtoken=\"#{authsub_token}\""}
resp, data = http.get(path, headers)
print "response"
print resp
print "data"
print data
resp.body and data both look like this
<HTML>
<HEAD>
<TITLE>Moved Temporarily</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Temporarily</H1>
The document has moved <A HREF="http://www.google.com/calendar/feeds/
default/allcalendars/full?gsessionid=crazystuff">here</A>.
</BODY>
</HTML>
Is this supposed to be happening, or have I ballsed it up somehwere?
Bit confused, any help is a Godsend.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---