skins-plus
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.4 • Public • Published

    skins-plus

    Site | Docs

    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' }));

    Install

    npm i skins-plus

    DownloadsWeekly Downloads

    3

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    28.8 kB

    Total Files

    49

    Last publish

    Collaborators

    • remoove