skins-plus
v1.0.6
Published
The library for skins.plus quick integration.
Downloads
5
Readme
skins-plus
The library for skins.plus quick integration.
Installation
$ npm install skins-plus
SkinsPlus class type
All types you can import from "skins-plus".
declare class SkinsPlus {
constructor(opts: ISkinsPlusOptions);
items(): Promise<TItemsResponse>;
withdraw(input: IWithdrawInput, timeout?: number): Promise<IWithdrawResponse>;
getOffer(input: IGetOfferInput): Promise<IGetOfferResponse>;
getDepositLink(input: IDepositInput): string;
isWebhookTrusted(input: IWebhookInput): boolean;
}
Example
// Import main class.
import { SkinsPlus } from "skins-plus";
// Create class instance.
const skinsplus = new SkinsPlus({
apiKey: '7a7d1e5aa91615ca0a3e1892ca44487583087189f54e53607acbaaf52fe6c9b4',
shopId: '60a23f2cd5131c2e0cce4f24'
});
// Create deposit link and log it.
console.log(skinsplus.getDepositLink({ partnerSteamId: '76561129127207223' }));