Thanks Ryan for the reply..But I did try getting a session token from
the one time token that i got ..here is the code that i used to get the
session token...Even here i get a unAuthorized error...And i have set
session=1 and secure=1 while getting the one time token..here is the
code for getting the session token which doesnt work...plsss
help....Ive been working on this for such a long time...


Dim sessionTokenRequest As HttpWebRequest =
CType(WebRequest.Create("https://www.google.com/accounts/AuthSubSessionToken";),
HttpWebRequest)
            sessionTokenRequest.Method = HttpMethods.Get
            sessionTokenRequest.ProtocolVersion = HttpVersion.Version11
            sessionTokenRequest.ContentType =
"application/x-www-form-urlencoded"
            sessionTokenRequest.Headers.Add("Authorization", "AuthSub
token=""" & strGoogleToken & """")
            sessionTokenRequest.UserAgent = "CS/1.0.0"
            sessionTokenRequest.Accept = "text/html, image/gif,
image/jpeg, *; q=.2, */*; q=.2"
            sessionTokenRequest.Connection =
sessionTokenRequest.KeepAlive
            Dim resp As HttpWebResponse =
sessionTokenRequest.GetResponse()


and another thing is that everytime I try to add to the header a key
value pair like "Host" and "http://www.google.com";... I get a web
exception...So i removed that line of code...Is that a problem?


--~--~---------~--~----~------------~-------~--~----~
 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