来自 Shopee 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§1 How to get the list of sticker_id with images?
Available value and its meaning
env(environment):live
region(region):sg,ph,id,vn etc.
pid(package id of a package which contains several stickers)
sid(sticker id which is same with sticker_id in the OpenAPI)
The procedure to get the sticker data:
1.combine a url with this format https://deo.shopeemobile.com/shopee/shopee-sticker-<env>-<region>/manifest.json
Response data format:
packs: [{
md5: ‘’,
pid: ‘’,
reg: [‘SG’, ‘PH’]
}]
2.According to the region you want to get for, you need to visit the above url with traversal,as long as response parameter “reg” includes your request region, you can save that pid so that you are able to get an array for the "pid" for each region.
Sample:
3.By requesting with "pid" in the array with traversal, you can get the list of "sticker_id" in each sticker package by visiting this url https://deo.shopeemobile.com/shopee/shopee-sticker-<env>-<region>/packs/<pid>/<pid>.json
Response data format:
Sample:
4.Finally, you will be able to combine the url of each sticker with this url.
https://deo.shopeemobile.com/shopee/shopee-sticker-<env>-<region>/packs/<pid>/<sid>@1x.<ext>
you need to pass the "sid" and "ext" with the above value of response. "sid" is the sticker_id in the chat OpenAPI.
Sample:
