1.1.0 • Published 2 years ago

wallet-sdk-development v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 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

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago