0.0.3 • Published 3 years ago

@srijanone/apigee-management-oauth v0.0.3

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

apigee-management-oauth

Apigee Management API Oauth module

Install

With npm installed, run

$ npm install @srijanone/apigee-management-oauth

Usage

const Apigee = require("@srijanone/apigee-management-oauth");
const apigee = new Apigee("username", "password");

apigee
  .getAccessToken()
  .then((data) => {
    console.log(data);
    const refreshToken = data.refreshToken;
    apigee
      .refreshAccessToken(refreshToken)
      .then((data) => console.log(data))
      .catch((error) => console.log(error));
  })
  .catch((error) => console.log(error));

See Also

License

MIT