{"action":"opened","issue":{"url":"https://api.github.com/repos/steam-forward/node-steam-forum/issues/111","labels_url":"https://api.github.com/repos/steam-forward/node-steam-forum/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/steam-forward/node-steam-forum/issues/111/comments","events_url":"https://api.github.com/repos/steam-forward/node-steam-forum/issues/111/events","html_url":"https://github.com/steam-forward/node-steam-forum/issues/111","id":113979784,"number":111,"title":"Getting a list of my inventory (with assetids and item names)?","user":{"login":"charredgrass","id":5135286,"avatar_url":"https://avatars.githubusercontent.com/u/5135286?v=3","gravatar_id":"","url":"https://api.github.com/users/charredgrass","html_url":"https://github.com/charredgrass","followers_url":"https://api.github.com/users/charredgrass/followers","following_url":"https://api.github.com/users/charredgrass/following{/other_user}","gists_url":"https://api.github.com/users/charredgrass/gists{/gist_id}","starred_url":"https://api.github.com/users/charredgrass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charredgrass/subscriptions","organizations_url":"https://api.github.com/users/charredgrass/orgs","repos_url":"https://api.github.com/users/charredgrass/repos","events_url":"https://api.github.com/users/charredgrass/events{/privacy}","received_events_url":"https://api.github.com/users/charredgrass/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-29T04:54:53Z","updated_at":"2015-10-29T04:54:53Z","closed_at":null,"body":"I'm using [node-steam-tradeoffers](https://github.com/Alex7Kom/node-steam-tradeoffers).\r\n\r\nThe bot I'm trying to write reads received trades and determines what items are in it, accepting if it matches certain criteria.\r\n\r\nCurrently, it gets the assetids of the items in the trade and tries to match it to a name (to figure out what the item is) by scanning the bot and other user's inventories. The problem I'm running into is getting the inventories, since the `loadMyInventory` and `loadPartnerInventory` functions have callbacks, which make it really hard for me to use that information outside the callback function.\r\n\r\nWhat's the best way to do this? Nothing I try seems to work, I can't make the synchronous functions wait for the asynchronous ones."}}