Thanks Maciej,
But honestly docs are not that clear (at-least for a beginner like me)..
I never paid much attention towards
1. buildBodyMessage()
2. buildHeaderMessage()
3. buildQueryMessage()
and followed example and that was my mistake nor this was clearly mentioned
in the docs.
Anyways thank
Your code shows something different?
It might be best if you provided the full code that you are using to
exchange a code for an access token.
Cheers, Maciej
On 6 January 2014 17:33, Umesh Awasthi wrote:
> I am using that already :(
>
>
> On Mon, Jan 6, 2014 at 11:01 PM, Maciej Machulak <
> ma
I am using that already :(
On Mon, Jan 6, 2014 at 11:01 PM, Maciej Machulak
wrote:
> Oh right, then use buildBodyMessage() :-) Sorry, my mistake
>
>
> On 6 January 2014 17:29, Umesh Awasthi wrote:
>
>> I am using following code for access token
>>
>> OAuthClientRequest.tokenProvider(OAuthProvid
Oh right, then use buildBodyMessage() :-) Sorry, my mistake
On 6 January 2014 17:29, Umesh Awasthi wrote:
> I am using following code for access token
>
> OAuthClientRequest.tokenProvider(OAuthProviderType.GOOGLE).
> setGrantType(GrantType.AUTHORIZATION_CODE).
>
I am using following code for access token
OAuthClientRequest.tokenProvider(OAuthProviderType.GOOGLE).
setGrantType(GrantType.AUTHORIZATION_CODE).
setClientIdkey).setClientSecret(secret).
setRedirectURI(callbackURL).
Try using the buildPostMessage()
On 6 January 2014 17:24, Umesh Awasthi wrote:
> In All cases I am using buildQueryMessage()
>
>
> On Mon, Jan 6, 2014 at 10:51 PM, Maciej Machulak <
> maciej.machu...@gmail.com> wrote:
>
>> Hi,
>>
>> See if you are using .buildQueryMessage(); or .buildPostMessag
In All cases I am using buildQueryMessage()
On Mon, Jan 6, 2014 at 10:51 PM, Maciej Machulak
wrote:
> Hi,
>
> See if you are using .buildQueryMessage(); or .buildPostMessage() when
> exchanging the code for an access token. I think that the documentation
> states the first one, while you should
Hi,
See if you are using .buildQueryMessage(); or .buildPostMessage() when
exchanging the code for an access token. I think that the documentation
states the first one, while you should be using the latter one.
I hope this helps, cheers, Maciej
On 6 January 2014 17:18, Umesh Awasthi wrote:
>
Hi All,
I Know this question does not directly belongs to the list, but I though
about asking here to get some clue..
I am trying to let user login through Google API but facing some issue,,I
am able to get access_code but when I am trying to get access_token, I am
getting HTTP Code 400 from Goog