HiDoes anyone have a working sample code for authenticating with Google API's? Something I can drop it into my project, change CliendID and secret and get an accesstoken of the user has authenticated.I need to access Gmail API (profile, contacts, read email) I have registered my application got my Key and Secret but can't find OAuth code that actually works (and I've tried a lot). The sample code (from here: http://code.google.com/p/gtm-oauth2/source/checkout) called "OAuth2SampleTouch" fails with an error:Error Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x7108be0 {data=<7b0a2020 22657272 6f722220 3a202269 6e76616c 69645f63 6c69656e 74220a7d>}
Error data:
{
error = "invalid_client";
}
Would really appreciate any help.