blogger-api | Blogger API for Node.Js
kandi X-RAY | blogger-api Summary
kandi X-RAY | blogger-api Summary
Blogger API for Node.Js
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of blogger-api
blogger-api Key Features
blogger-api Examples and Code Snippets
Community Discussions
Trending Discussions on blogger-api
QUESTION
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.
...ANSWER
Answered 2021-May-16 at 16:32So, what am I missing? Why does the "API key" works but "OAuth 2.0 token" does not?
To directly answer your question. API key only works with public data, Your not sending a valid access token as the OAuth 2 bearer token, the value you are sending is wrong.
Api KeyFirst off an API key will only give you access to public data, so you could for example use an API key to list public videos on YouTube, or look at one of the public holiday calendars on Google Calendar. You can not use an API key to access private user data
To access private user data or any method that requires authorization you need to supply a authorization header and submit a valid bearer token.
"OAuth 2.0 token"Your issue is that you are not submitting a valid access token. it looks like you may be trying to send the client id from your project on Google cloud console. This is not an access token.
How to get an access token with curl.How to get an access token with CURL is a three step process the first step being requesting authorization of the user who owns the data
This is a HTTP get call and can be placed in any browser window.
QUESTION
I'm using this Google App script
...ANSWER
Answered 2020-Feb-04 at 14:22You have to change the Logger.log() for appendRow(). In your case you have to set the sheet you want to insert the values:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install blogger-api
No Installation instructions are available at this moment for blogger-api.Refer to component home page for details.
Support
If you have any questions vist the community on GitHub, Stack Overflow.
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page