Skip to main content
1 of 4
rhinds
  • 101
  • 1

400 Error when attempting to retrieve authenticaed user data

I am attempting to use the /me API to retrieve an authenticated user's details but I am recieving a 400 error.

I am able to complete the OAuth2 dance and have been able to capture the access token and expire value, but when I then go on to send my request to https://api.stackexchange.com/2.0/me?site=stackoverflow (including access token) it gives mea 400 error.

Here is what I am logging if its of any use:

GET request for "https://api.stackexchange.com/2.0/me?site=stackoverflow" resulted in 400 (Bad Request); invoking error handler
HttpClientErrorException while completing connection: 400 Bad Request
Response body: ?

Is there anything i am missing? other than just sending the access token to the above URL is there anything else i need to do?

Any help would be much appreciated.

rhinds
  • 101
  • 1