Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

YouTube Analytics API 400 Bad Request

I was trying to fetch YouTube analytics data and to get the access token for the same. I have followed the procedure given https://developers.google.com/youtube/analytics/authentication. We got the code but when i have tried to use POST request to get access token,i got the 400 bad request.Please help.

My Post request:

POST /o/oauth2/token HTTP/1.1  //Post Rquest
Host: accounts.google.com
Content-Type: application/x-www-form-urlencoded

code=4/M7LjucbJDYrZCMiqymuKCmbGxvJk...&
client_id=8465043....apps.googleusercontent.com&
client_secret=8gn6f7K...&
redirect_uri=https://qsmi.qualcomm.com/oauth2callback&
grant_type=authorization_code
response_type=4/M7LjucbJDYrZCMiqymuKCmbGxvJk...

One more thing do we have to ask for whitelisting of app or i am missing anything. Please help !!!

Answer*

Cancel
2
  • I have omitted the response_type but still getting the same error. Commented Jan 30, 2013 at 9:57
  • feel free to share all your request and response and I'll look into it. ulukaya@google Commented Mar 15, 2013 at 19:40