Hi Alain Vongsouvanh,
Thanks for your reply.
I have understood the process of getting access token for Oauth 2.0
Now I am developing QT based application using QOAuth library.
But QOAuth supports only OAuth 1.0.
So how can I get Consumerkey,Consumersecret,Oauth_signature for my
application using QAuth 1.0 and the QOAuth library apis is expecting
token as well as tokensecret from the server.
Can you please advice me in this regard
I am using the following urls in my application:
http://www.google.com/accounts/OAuthGetRequestToken
http://www.google.com/accounts/OAuthGetAccessToken
Thanks a lot for your support.
Regards
Abdul Moiz
> Can you try this command line:
> curlhttps://
accounts.google.com/o/oauth2/auth?client_id=586812405065.apps...
>
> Also, this URL is to be visited by the user in order to grant access to your
> application by clicking on the "Allow" button. Also, the response_type has
> to be set to "code" in order to be used with the "urn:ietf:wg:oauth:2.0:oob"
> redirect URI since this is a native application flow. Once you get the
> access code back from the server, you can exchange it for an access and
> refresh token.
>
> One more thing: please make sure to hide your client id and client secret
> when you copy and paste codes and/or command lines. You can ask for a new
> client id by going into the API Console.
>
> Best,
> Alain
>
>
>
> On Sun, Jun 19, 2011 at 10:59 PM, ABDUL MOIZ <
abdulmoiz...@gmail.com> wrote:
>
> > hi Alain Vongsouvanh,
>
> > Thanks for your reply.
> > I tried with the advice given by you .i.e i have requested API access
> > and I have got the client id and redirect uris
> > I have used oauth 2 API as shown below but still i could not get the
> > access token from the google server.
>
> > This is my curl command line:
>
> > curl
> >
https://accounts.google.com/o/oauth2/auth?client_id=586812405065.apps...
> >
http://localhost&scope=
> >
https://www.google.com/m8/feeds/&response_type=token
>
> > Response I am getting is as shown below:
>
> > [1] 3951
> > [2] 3952
> > [3] 3953
> > bash:http://localhost:No such file or directory
> > <HTML>
> > <HEAD>
> > <TITLE>invalid_request: Required parameter is missing: response_type</
> > TITLE>
> > </HEAD>
> > <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
> > <H1>invalid_request: Required parameter is missing: response_type</H1>
> > <H2>Error 400</H2>
> > </BODY>
> > </HTML>
> > ^C
> > [1] Done curl
>
> >
https://accounts.google.com/o/oauth2/auth?client_id=586812405065.apps...