@etransfer/services v1.14.0
@etransfer/services
You can use this package to easily access the etransfer server and obtain data related to deposits and withdrawals.
Installation
Using NPM
npm install @etransfer/servicesUsing Yarn
yarn add @etransfer/servicesPrerequisites
Package.json Scripts
| Script | Description |
|---|---|
| clean | Uses rm to remove dist/ |
| build | Uses tsc to build package and dependent packages |
| lint | Uses eslint to lint package |
| lint:fix | Uses eslint to check and fix any warnings |
| format | Uses prettier to format the code |
How to use
See more Developer Documentation.
import { Services } from '@etransfer/services';
const services = new Services();
// Set global http request headers.
services.setRequestHeaders('Authorization', '');
// Set global http request parameters.
services.setRequestConfig('baseURL', 'https://xxx.xxx');
// Get authorization token.
await this.services.getAuthToken({}, { baseURL: '' });
// Get tokens that support deposit.
await this.services.getTokenOption({});9 months ago
11 months ago
12 months ago
11 months ago
12 months ago
10 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago