grantReward
Grant a reward to the connected user.
Description
Grant a specific reward to the connected user.
Parameters
Parameter | Values | Description | Required |
---|---|---|---|
rewardExternalId | string | Id of the reward you are granting to the user. | required |
Response
Returns a Promise
Code example
splioSDK.grantReward('my-reward-external-id').then(() => {
console.log('Reward granted !');
}).catch((err) => {
console.log(err.description);
});
Updated over 1 year ago