apimtoken
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

apimtoken

single line API to get an accses token from API_M

oclif Version Downloads/week License

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 apimtoken

Runnig 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

Package Sidebar

Install

npm i apimtoken

Weekly Downloads

6

Version

0.0.7

License

MIT

Unpacked Size

9.11 kB

Total Files

10

Last publish

Collaborators

  • vimukthi96