Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #191 from markitecht/master
Browse files Browse the repository at this point in the history
add getPortalInfo method to OAuth
  • Loading branch information
pcothenet authored Oct 8, 2019
2 parents 5bac3de + 97093fe commit cebe7bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ class OAuth {
return results
})
}

getPortalInfo() {
return this.client._request({
method: 'GET',
path: `/oauth/v1/access-tokens/${this.client.accessToken}`
})
}
}

module.exports = OAuth

0 comments on commit cebe7bd

Please sign in to comment.