Jump to content


Photo

Wait For Items Price (community.getMarketItem)

node.js node-steamcommunity

  • Please log in to reply
4 replies to this topic

#1 Ino

Ino

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 01 September 2017 - 10:46 AM

Hello , I try to get the price of each item, but I do not have time to do it, and I return the undefined . How i can get price of each items ?

My code

---

resolve it with promise

close theme please 


Edited by Ino, 01 September 2017 - 01:46 PM.


#2 flyingscot5

flyingscot5

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 07 October 2017 - 11:59 AM

Hello , I try to get the price of each item, but I do not have time to do it, and I return the undefined . How i can get price of each items ?

My code

---

resolve it with promise

close theme please 

would you mind how you managed to solve the problem.



#3 xLeeJYx

xLeeJYx

    Advanced Member

  • Member
  • PipPipPip
  • 70 posts

Posted 07 October 2017 - 09:50 PM

would you mind how you managed to solve the problem.

he already said using promises. Youve gotta learn how to use promises for async functions



#4 Axle

Axle

    Member

  • Member
  • PipPip
  • 16 posts

Posted 08 October 2017 - 03:10 PM

would you mind how you managed to solve the problem.

The async nodeJS module is also a good alternative if you don't want to use promises. They're basically the same thing except it makes code a lot neater.



#5 flyingscot5

flyingscot5

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 10 October 2017 - 05:23 PM

he already said using promises. Youve gotta learn how to use promises for async functions

The Promise is the easy part that's not what I was getting at. The issue I have is I can't slow it down for rate limit so I'm wondering how he managed that.







Also tagged with one or more of these keywords: node.js, node-steamcommunity

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users