Guest User

Untitled

a guest
Nov 3rd, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function getItemInventory(profileid,callback){
  2. http.get('http://steamcommunity.com/profiles/'+profileid+'/inventory/json/'+appid+'/2', function(res) {
  3. var data = "";
  4. res.on('data', function (chunk) {
  5. data += chunk;
  6. });
  7. res.on("end", function() {
  8. callback(data);
  9. });
  10. }).on("error", function() {
  11. callback(null);
  12. });
  13. }
Advertisement
Add Comment
Please, Sign In to add comment