ts-btg-pix-sdk
v0.3.2
Published
- [Installation](#installation) - [Setting up your BTG Credentials](#setting-up-your-btg-account) - [Usage](#usage) - [Testing](#testing) - [Publishing](#testing)
Readme
Contents
Installation
You can install the package via npm:
$ npm install ts-btg-sdkSetting up your BTG Credentials
Add your BTG client_id, client_secret and url.
...
const BTGConfig: BTGConfigurationData = {
client_id: environment.CLIENT_ID,
client_secret: environment.CLIENT_SECRET,
url: environment.URL
}
BTGConfiguration.Init(BTGConfig);
...Usage
Now you can use BTGClient in your project:
const authorization: AuthDto = await BTGClient.createAuthToken();Testing
There is at least one test for every request, currently running with mocha.
$ npm run testPublishing
Change version number at package.json and then run:
$ npm run dist