ts-pismo-sdk
v1.0.2
Published
You can install the package via npm:
Downloads
16
Readme
Installation
You can install the package via npm:
$ npm install ts-pismo-sdk
Setting up your Pismo Credentials
Add your Pismo server_key
, server_secret
, account_id
and url
.
...
const PismoConfig: PismoConfigurationData = {
server_key: environment.SERVER_KEY,
server_secret: environment.SERVER_SECRET,
account_id: environment.ACCOUNT_ID,
url: environment.URL
}
PismoConfiguration.Init(PismoConfig);
...
Usage
Now you can use PismoClient in your project:
const authorization: AuthDto = await PismoClient.createAuthToken();
Testing
There is at least one test for every request, currently running with mocha.
$ npm run test
Publishing
Change version number at package.json
and then run:
$ npm run dist