On Tue, Sep 6, 2011 at 12:54 AM, Sumit Maitra <sumi...
> Hello Xinyue,
> Since I had made the mistake of registering my app as web client instead of
> installed client, I was getting this error. One i got the client id and key
> for installed app, things worked. But you seem to be on the right track so
> we'll have to wait for Greg to help out here.
> I will look up my thread too to see if I can find something.
> On Sep 6, 2011, at 12:44 AM, Xinyue Zhai (翟欣玥) <xinyuez...@google.com>
> Hi Sumit,
> I registered my app as installed application. And how did you resolve the
> similar issue?
> On Tue, Sep 6, 2011 at 3:40 PM, Sumit Maitra < <sumi...@gmail.com>
> sumi...@gmail.com> wrote:
>> Did you register your app as a web app or client app? I had made that
>> mistake first time around.
>> Thanks and Regards,
>> On Sep 5, 2011, at 10:25 PM, Xinyue Zhai (翟欣玥) < <xinyuez...@google.com>
>> xinyuez...@google.com> wrote:
>> I downloaded the sample code and wanted to learn and play with it. I
>> followed the introduction to registered my app on the API console as
>> Doraemon and got the client ID and secret key.
>> I run the OAuthSampleTouch in the iphone simulator, and typed the client
>> ID and secret key in the text fields. It successfully redirects to the
>> google login screen. I use my company email and personal email to login and
>> allow the permission for the app to access data. Everything seems work well.
>> But when the web view closed, it returns a error message to the
>> finishedSelector as below:
>> *2011-09-06 13:11:36.238 OAuthSampleTouch[12454:40b] Error Error
>> Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed.
>> (com.google.HTTPStatus error 400.)"*
>> *Error data:*
>> * error = "invalid_client";*
>> I have double checked that this error data means invalid client
>> identifier. Do I miss something on applying for the client ID?
>> I am new to OAuth. Please help me on this issue or point to some related
>> documentation to resolve this problem.
>> Thanks a lot!
>> Best Wishes!
>> Xinyue Zhai(翟欣玥)
>> Seat 322C, Ext 3627
>> Software Engineer
>> Infrastructure Networking Department
>> Google China
> Best Wishes!
> Xinyue Zhai(翟欣玥)
> Seat 322C, Ext 3627
> Software Engineer
> Infrastructure Networking Department
> Google China