DoctorMcKay / node-globaloffensive

A Node.js module to connect to and interact with the CS2 game coordinator. Mostly used to get item data.
https://www.npmjs.com/package/globaloffensive
MIT License
262 stars 61 forks source link

Get image by sticker id #7

Closed Cognitivess closed 4 years ago

Cognitivess commented 7 years ago

do you have any idea how to get sticker image with sticker id ?

Exokay commented 7 years ago

u normally get the sticker image link via the inventory json item data.
link: http://steamcommunity.com/inventory/profileid/730/2?l=english&count=5000 ex. {"type":"html","value":"<br><div id=\"sticker_info\" name=\"sticker_info\" title=\"Sticker Details\" style=\"border: 2px solid rgb(102, 102, 102); border-radius: 6px; width=100; margin:4px; padding:8px;\"><center><img width=64 height=48 src=\"https://steamcdn-a.akamaihd.net/apps/730/icons/econ/stickers/community02/mylittlefriend.6515b596e3560fb620f5b9524a504981fd7c0c2d.png\"><br>Sticker: My Little Friend</center></div>"}],
thats not helping getting it via the sticker id but its a start.