ts-magalu-sdk
v0.1.43
Published
- [Installation](#installation) - [Setting up your Magalu Credentials](#setting-up-your-magalu-account) - [Usage](#usage) - [Testing](#testing) - [Publishing](#testing)
Downloads
3
Readme
Contents
Installation
You can install the package via npm:
$ npm install ts-magalu-sdk
Setting up your Magalu Credentials
Add your BTG username
, password
and environment
.
...
const MagaluConfig: MagaluConfigurationData = {
username: environment.USERNAME,
password: environment.PASSWORD,
environment: environment.ENVIRONMENT
}
MagaluConfiguration.Init(MagaluConfig);
...
Usage
Now you can use MagaluClient in your project:
const authorization: AuthDto = await MagaluClient.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