Hello- I have a page that grabs gmail contacts. This feature on my site WAS working not to long ago. I just happened to test it and now I'm getting:
Token invalid - AuthSub token has wrong scope Here is what I have: I have a form that redirects to: https://www.google.com/accounts/AuthSubRequest?scope=http%3A%2F%2Fwww.google.com%2Fm8%2Ffeeds%2F&session=1&secure=0&next=http%3A%2F%2Fwww.mydomain.com%2FAddFriendPage.php%3Fgoogle%3Dy%26user%3D"+emailValue This comes back and I kick off a curl request to: $server = "http://www.google.com/m8/feeds/contacts/".$user."/full?max- results=3000"; with: $header[] = "GET /m8/feeds/contacts/".$user."/full?max-results=300000 HTTP/1.1"; $header[] = "Content-Type: application/x-www-form-urlencoded"; $header[] = "Authorization: AuthSub token=\"".$_GET[token]."\""; $header[] = "User-Agent: Java/1.5.0_06"; $header[] = "Host: www.google.com"; $header[] = "Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"; $header[] = "Connection: keep-alive\r\n"; I swear this WAS working not to long ago... but now I'm getting a wrong scope token error. Any ideas? Jeff --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
