Usage
Instructions
1
2
Using the SDK
import { WLLRewardsSdk, StaticAuthProvider } from '@wll-sdk/api';
const wllSdk = new WLLRewardsSdk({
apiKey: '<your-api-key>',
authProvider: new StaticAuthProvider({
token: '<your-token>',
}),
baseUrl: 'https://api.staging.rewards.wlloyalty.net/v1',
});
const rewards = await wllSdk.reward.list();
console.log(rewards); // Output: { data: [...your rewards] }Reference
Property
type
Required?
Limitations
Last updated