0.0.7 • Published 6 years ago
apimtoken v0.0.7
apimtoken
single line API to get an accses token from API_M
Pre-requisite
- node.js
- wso2-APIM 2.7 , 3.0 , 3.1
Installation
You can install apimtoken either through npm or by cloning the code from this GitHub repo. This README covers the installation steps with npm.
1) Run the following command in the terminal
$ npm install -g apimtokenRunnig the Cli-Tool
Make sure Wso2 API manager is up and running
Then run the following command to retrive an accsess token
If you are using a version below 3.1 please metion the version under flag ex- -a=2.7
Run apimtoken -h for help
Example
$ apimtoken -s={ scopes } -n={ username } -p={ password } -u={ URL } -a={ apim Version }
$ apimtoken -s=apim:apim_create -n=admin -p=admin -u=https://10.100.5.244:9443 -a=3.1 Development Guide
Clone or download the repository
Run npm install to install all the required dependencies
Credits - oclif framework https://oclif.io