@srijanone/apigee-management-oauth

Apigee Management API Oauth module

Usage no npm install needed!

<script type="module">
  import srijanoneApigeeManagementOauth from 'https://cdn.skypack.dev/@srijanone/apigee-management-oauth';
</script>

README

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