Hi,
I have a .net application that I use with sso.
one thing I can't figure out is how to use the atom feed with the sso
to get back a feed with the unread emails.

I get the authkey like this
            string SendToUri = "https://www.google.com/accounts/
ClientLogin";
            WebRequest request = WebRequest.Create(SendToUri);
            request.Method = "POST";
            string postData = "accountType=HOSTED&Email=" + email +
"&Passwd=" + Password;
            byte[] byteArray = Encoding.UTF8.GetBytes(postData);
            request.ContentType = "application/x-www-form-urlencoded";
            request.ContentLength = byteArray.Length;
            Stream dataStream = request.GetRequestStream();
            dataStream.Write(byteArray, 0, byteArray.Length);
            dataStream.Close();
            WebResponse response = request.GetResponse();
            string Status =
((HttpWebResponse)response).StatusDescription;
            dataStream = response.GetResponseStream();
            StreamReader reader = new StreamReader(dataStream);
            string responseFromServer = reader.ReadToEnd();
            reader.Close();
            dataStream.Close();
            response.Close();
            int ts = responseFromServer.IndexOf("LSID=");
            Session["google_auth_key"] =
responseFromServer.Remove(ts-1).Remove(0,4);

Thanks a lot
RNBY
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" 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-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to