{"action":"created","issue":{"url":"https://api.github.com/repos/Alex7Kom/node-steam-tradeoffers/issues/197","labels_url":"https://api.github.com/repos/Alex7Kom/node-steam-tradeoffers/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/Alex7Kom/node-steam-tradeoffers/issues/197/comments","events_url":"https://api.github.com/repos/Alex7Kom/node-steam-tradeoffers/issues/197/events","html_url":"https://github.com/Alex7Kom/node-steam-tradeoffers/issues/197","id":122127691,"number":197,"title":"Can't get hold duration","user":{"login":"halipso","id":12223968,"avatar_url":"https://avatars.githubusercontent.com/u/12223968?v=3","gravatar_id":"","url":"https://api.github.com/users/halipso","html_url":"https://github.com/halipso","followers_url":"https://api.github.com/users/halipso/followers","following_url":"https://api.github.com/users/halipso/following{/other_user}","gists_url":"https://api.github.com/users/halipso/gists{/gist_id}","starred_url":"https://api.github.com/users/halipso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halipso/subscriptions","organizations_url":"https://api.github.com/users/halipso/orgs","repos_url":"https://api.github.com/users/halipso/repos","events_url":"https://api.github.com/users/halipso/events{/privacy}","received_events_url":"https://api.github.com/users/halipso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-12-14T20:46:53Z","updated_at":"2016-01-03T17:03:38Z","closed_at":null,"body":"After certain time library always returns this error \"retrieving hold duration: can't get hold duration\""},"comment":{"url":"https://api.github.com/repos/Alex7Kom/node-steam-tradeoffers/issues/comments/168518281","html_url":"https://github.com/Alex7Kom/node-steam-tradeoffers/issues/197#issuecomment-168518281","issue_url":"https://api.github.com/repos/Alex7Kom/node-steam-tradeoffers/issues/197","id":168518281,"user":{"login":"fedorovvldmr","id":3023645,"avatar_url":"https://avatars.githubusercontent.com/u/3023645?v=3","gravatar_id":"","url":"https://api.github.com/users/fedorovvldmr","html_url":"https://github.com/fedorovvldmr","followers_url":"https://api.github.com/users/fedorovvldmr/followers","following_url":"https://api.github.com/users/fedorovvldmr/following{/other_user}","gists_url":"https://api.github.com/users/fedorovvldmr/gists{/gist_id}","starred_url":"https://api.github.com/users/fedorovvldmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedorovvldmr/subscriptions","organizations_url":"https://api.github.com/users/fedorovvldmr/orgs","repos_url":"https://api.github.com/users/fedorovvldmr/repos","events_url":"https://api.github.com/users/fedorovvldmr/events{/privacy}","received_events_url":"https://api.github.com/users/fedorovvldmr/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T17:03:38Z","updated_at":"2016-01-03T17:03:38Z","body":"```javascript\r\n\r\nvar gSessionID = false;\r\n\r\nSteamClient.on('webSessionID', function(webSessionID) {\r\n\thelper.msg('Event \"webSessionID\" sessionID: '+webSessionID);\r\n\thelper.msg('Event \"webSessionID\" SteamClient.sessionID: '+SteamClient.sessionID);\r\n\r\n\tgSessionID = webSessionID;\r\n\r\n\treWebLogOn();\r\n});\r\n\r\nSteamClient.on('logOnResponse', function(logonResp) {\r\n\thelper.msg('Event \"logOnResponse\": '+JSON.stringify(logonResp));\r\n\r\n\tif(logonResp.eresult === Steam.EResult.OK)\r\n\t{\r\n\t\thelper.msg('Logged in!');\r\n\t\tSteamFriends.setPersonaState(Steam.EPersonaState.Online);\r\n\r\n\t\treWebLogOn();\r\n\t}\r\n});\r\n\r\nfunction reWebLogOn(callback) {\r\n\r\n\tsteamWebLogOn.webLogOn(function(sessionID, newCookie) {\r\n\r\n\t\t//if(gSessionID)\r\n\t\t//{\r\n\t\t//\tsessionID = gSessionID;\r\n\t\t//}\r\n\t\t//sessionID = SteamClient.sessionID;\r\n\r\n\t\thelper.msg('webLogOn: '+JSON.stringify({\r\n\t\t\t\tsessionID: sessionID,\r\n\t\t\t\tcookie:    newCookie\r\n\t\t\t}));\r\n\r\n\t\tgetSteamAPIKey({\r\n\t\t\tsessionID: sessionID,\r\n\t\t\twebCookie: newCookie\r\n\t\t}, function(err, apiKey) {\r\n\t\t\tif(err)\r\n\t\t\t{\r\n\t\t\t\thelper.msg('Ошибка в событии logOnResponse ERROR '+err);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\thelper.msg('getSteamAPIKey: '+apiKey);\r\n\r\n\t\t\t\toffers.setup({\r\n\t\t\t\t\tsessionID: sessionID,\r\n\t\t\t\t\twebCookie: newCookie, //APIKey:    config.apiKey\r\n\t\t\t\t\tAPIKey:    apiKey\r\n\t\t\t\t});\r\n\r\n\t\t\t\tif(typeof callback == \"function\")\r\n\t\t\t\t{\r\n\t\t\t\t\tcallback();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n}\r\n\r\n```"}}