ts-celcoin-sdk
v1.4.1
Published
- [Installation](#installation) - [Setting up your Credentials](#setting-up-your-account) - [Usage](#usage) - [Testing](#testing) - [Publishing](#testing)
Downloads
16
Readme
Contents
Installation
You can install the package via npm:
$ npm install ts-celcoin-sdk
Setting up your Credentials
Add your client_id
, client_secret
and url
.
...
const Config: ConfigurationData = {
client_id: environment.CLIENT_ID,
client_secret: environment.CLIENT_SECRET,
url: environment.URL
}
Configuration.Init(Config);
...
Usage
Now you can use Client in your project:
const authorization: AuthDto = await Client.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