0.1.6 • Published 4 months ago

@winwinkit/sdk v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@winwinkit/sdk

SDK Installation

The SDK can be installed with either npm, pnpm, bun or yarn package managers.

NPM

npm add @winwinkit/sdk

PNPM

pnpm add @winwinkit/sdk

Bun

bun add @winwinkit/sdk

Yarn

yarn add @winwinkit/sdk

SDK Example Usage

Example

import { WinWinKit } from 'winwinkit'

const wwk = new WinWinKit({
  apiKey: process.env['WINWINKIT_API_KEY'] ?? '',
})

// Create referral user.
const referralUser = await wwk.createReferralUser({
  appUserId: "821fae4b5-1a2d-4c1e-9152-5297086a161c"
})

...

// Claim referral code.
const { referralUser, grantedRewards } = await wwk.claimReferralCode({ 
  appUserId: "821fae4b5-1a2d-4c1e-9152-5297086a161c",
  code: "XYZ123"
})
0.1.6

4 months ago

0.1.5

4 months ago

0.1.4

4 months ago