Hi, You are encountering the 302 redirection from calendar server. For optimization reason, we sometimes return these redirections for requests to follow, all you have to do is follow that redirect with your original request (as well as the auth token). This is mentioned in this part of the protocol guide -
http://code.google.com/apis/calendar/developers_guide_protocol.html#CreatingEvents Hope that helps, Austin On Wed, Apr 23, 2008 at 3:38 AM, vanderkerkoff <[EMAIL PROTECTED]> wrote: > > 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<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 -~----------~----~----~----~------~----~------~--~---
