Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3601
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. The way you've written it here is correct. The error indicates that you're trying to access the variable outside of the scope where it was defined.
  2. community.login()
  3. Create a new SteamCommunity instance.
  4. Yep!
  5. The settings on that account do not allow you to add comments.
  6. Both your node and npm are ancient. Update them both to supported versions (node 6 or later, npm 3 or later).
  7. There is no guarantee that if an assetid changes, it won't change to an assetid that has been previously assigned to an item. They are only guaranteed unique at one point in time. That said, for Valve games, when an assetid changes it will only increase and will never be an ID previously assigned.
  8. It's in the cookies array, which contains strings of format name=value.
  9. Why do you need the value of that cookie? Why are you logging in twice? Don't do that. The fifth argument to the callback of login is oAuthToken, not YourCookieValue. Use that instead of calling getWebApiOauthToken just after logging in.
  10. user.steamID
  11. community.steamID
  12. You can provide a custom time offset to steam-totp when generating the code. Current time + 30 should work.
  13. You're trying to reuse a code, which doesn't work.
  14. Just Steam doing Steam things. You need to try again later.
  15. Surely there is more code in your application than just that snippet. Also, provide the entire output please.
  16. That crash is because you're trying to pass undefined to addMyItem.
  17. The way you've used it looks correct to me (although you probably want to console.log that err). I'd need to see more (like more of the error).
  18. No, there is no error handling or timeout built into the module; you will need to handle that on your own. The async module may help you, specifically async.queue.
  19. This may help you: https://dev.doctormckay.com/topic/365-cookies/
×
×
  • Create New...