1.1.0 • Published 8 months ago

wallet-sdk-development v1.1.0

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

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago