1.1.0 • Published 3 years ago

wallet-sdk-development v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

语言切换 / Language Switch

Installing

Using npm

$ npm install wallet-sdk-development --save

Once the package is installed, you can import the library using import approach:

import WalletSdkDev, { ConfigType, ConfigEnvEnum } from 'wallet-sdk-development';

Examples

import WalletSdkDev, { ConfigType, ConfigEnvEnum, AuthSingleResponseDto } from 'wallet-sdk-development';

const config: ConfigType = {
    providerId: 'tongits',
    gameId: 'tongits',
    operatorToken: process.env['OPERATOR_TOKEN'] ?? '',
    secretKey: process.env['SECRET_KEY'] ?? '',
    version: '1',
    env: ConfigEnvEnum.Test,
};

const sdk = new WalletSdkDev(config);

async authenticate(token: string) {
    const result = await this.walletDev.authenticate(token);
    return this.formatResponse<string, AuthSingleResponseDto>(WalletFunctionEnum.Authenticate, result, token);
}

接口文档

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago