Trying to use Google Blogger API v3.0
Have a test blog set up - https://msi-blogger-api-test.blogspot.com/
Blogger User ID is - 11970463155418365784 As appears in - https://www.blogger.com/profile/11970463155418365784
Have both "API key" and "OAuth 2.0 token" set up for this project -
In the Blogger sand box it works perfectly -
Copied the cURL from the Blogger sand box.
Copied "API key" and "OAuth 2.0 token" from console.cloud.google.com (screenshot above) via the "copy" button (as highlighted in the screenshot).
Trying from CLI via cURL, works when using the "API key" alone -
Trying from CLI via cURL, DOES NOT work when using the "API key" and "OAuth 2.0 token" -
Tried to use the "OAuth 2.0 token" in both these ways:
- 1008747252329-g8j8...ebb.apps.googleusercontent.com
- 1008747252329-g8j8...ebb
Thought maybe the ".apps.googleusercontent.com" suffix is not rquired.
This did not make any difference.
So, what am I missing? Why does the "API key" works but "OAuth 2.0 token" does not?
Yes, I do not need to use the "OAuth 2.0 token" for the cURL in this (API "get") example, but it should still work.
When I'm trying a different API, say "listByUser", that requires the "OAuth 2.0 token" - it does not work and I get the same error.