1.0.6 • Published 2 years ago

blogger_auth v1.0.6

Weekly downloads
-
License
MTI
Repository
github
Last release
2 years ago

BloggerAuth

Blogger auth to make {POST} requests

What is this?

A blogger oauthplayground

Installation

Before install, you will must follow some steps...

create your OAuth client in google console console.cloud.google.com

after create you OAuth client, you will use your clientId and clientSecret to create your refreshToken through OAuth 2.0 Playground
that's the scope will need https://www.googleapis.com/auth/blogger

npm i blogger_auth --save

Then...

create an index.js file in the same folder where you have just install library. define all params

const clientId = 'clientId.apps.googleusercontent.com'
const clientSecret = 'clientSecret'
const refreshToken = 'refreshToken'

var dataAuth = {
  clientId: clientId,
  clientSecret: clientSecret,
  refreshToken: refreshToken,
  bloggerId: 'bloggerId',
  postId: 'postId',
  replaceString: `last of last of last comment from api 11-07-2022` 
}
const auth = require("blogger/auth")
 auth.send(dataAuth).then(resp =>{
  console.log('Post method resp: ', resp) 
})

Test

node index.js

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago