Created
October 25, 2021 02:24
-
-
Save vanthao03596/fa954c5ba1f9bf90b67c3d02a85d8c5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const qs = `itemid=${id}&shopid=${shopId}`; | |
const qsHash = crypto.createHash('md5').update(qs).digest('hex'); | |
const none = crypto.createHash('md5').update(`55b03${qsHash}55b03`).digest('hex'); | |
const data = await axios.get(`https://shopee.vn/api/v2/item/get?${qs}`, { | |
headers: { 'if-none-match-': `55b03-${none}` }, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment