Add/Remove Wish List
The Add/Remove Wish List API allows for the user to add or remove any sticker packs from the user’s sticker pack wish list. This API can be used with ‘Like’ icon or ‘Add to Wish List’ button in the My Page & Sticker Page UI. In the case of free stickers it can be simply used as ‘Like’ feature, and in the case of paid stickers it can be a wish list for a potential sticker purchase.
Request URL
PUT
https://messenger.stipop.io/v1/wish/:packageId
Best Practices
- Check all the components that can be put into building this from our UI Kit. It will help you build the sticker feature much quicker and easier.
- We recommend you using this along with My Wish List and My Sticker Packs to provide the best user experience to the users.
Parameters
Required | Type | Description |
---|---|---|
apikey | string | Stipop API Key for your app. Visit developer dashboard for new API Key. |
Required | Type | Description |
---|---|---|
packId | string | The [packId] of a sticker pack, NOT stickerId. Example: 6363, 5636, 5859 |
Required | Type | Description |
---|---|---|
userId | string | Unique value for every user to distinguish unique users. The userId can be in any string format. Important: Using same userId for multiple users is not allowed. |
Example Request
Sample Call: Add/Remove Wish List
cURL
1
curl --location --request PUT "https://messenger.stipop.io/v1/wish/118?userId=9937" --header "apikey:xxxxxxxxx"
Success Response
Success Response code 200
1
2
3
4
5
6
7
8
{
"header": {
"code": "0000",
"status": "success",
"message": "success"
},
"body": []
}
Error Response
Error | Code | Description |
---|---|---|
non exist apikey | 9000 | The API key used does not exist |
server error | 1000 | Unable to receive data from the server |
Was this page helpful?
We’re here to help. Contact us.