Hello, There have been some issues some months ago where people had to register their domain within Google in order to exchange a single use token with a session token; I am not aware if this has been fixed but that might be worth the try.
Also, is there any reason for using AuthSub instead of OAuth 2.0<http://code.google.com/apis/accounts/docs/OAuth2.html>? If there's none, I would advise you to switch to OAuth 2.0 as it is more secure and more supported. Best, Alain On Mon, Jun 20, 2011 at 10:35 AM, CimiGod <[email protected]> wrote: > Hi, > if I try to get a Session Token from google the server doesn't respond.. > The code that I use is this: > > > $ch = curl_init("https://www.google.com/accounts/AuthSubSessionToken"); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); > curl_setopt($ch, CURLOPT_FAILONERROR, true); > curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); > curl_setopt($ch, CURLOPT_HTTPHEADER, array( > 'Authorization: AuthSub token="' . trim($token) . '"' > )); > > $result = curl_exec($ch); > curl_close($ch); > > $splitStr = split("=", $result); > > return trim($splitStr[1]); > > but the server doesn't respond..No error code..nothing of nothing.. :( > The token that I take from https://www.google.com/accounts/AuthSubRequestis > correct because I can use it as Single-use token.. > > -- > You received this message because you are subscribed to the Google > Groups "Google Contacts, Shared Contacts and User Profiles 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://code.google.com/apis/contacts/community/forum.html > -- Alain Vongsouvanh | Developer Programs Engineer | [email protected] | +1 650 479-6719 -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles 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://code.google.com/apis/contacts/community/forum.html
