{"action":"created","issue":{"url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/36","labels_url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/36/comments","events_url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/36/events","html_url":"https://github.com/DoctorMcKay/node-steam-user/pull/36","id":122172209,"number":36,"title":"Game code redeem function","user":{"login":"Aareksio","id":11166786,"avatar_url":"https://avatars.githubusercontent.com/u/11166786?v=3","gravatar_id":"","url":"https://api.github.com/users/Aareksio","html_url":"https://github.com/Aareksio","followers_url":"https://api.github.com/users/Aareksio/followers","following_url":"https://api.github.com/users/Aareksio/following{/other_user}","gists_url":"https://api.github.com/users/Aareksio/gists{/gist_id}","starred_url":"https://api.github.com/users/Aareksio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aareksio/subscriptions","organizations_url":"https://api.github.com/users/Aareksio/orgs","repos_url":"https://api.github.com/users/Aareksio/repos","events_url":"https://api.github.com/users/Aareksio/events{/privacy}","received_events_url":"https://api.github.com/users/Aareksio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-15T01:38:08Z","updated_at":"2015-12-15T08:49:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/pulls/36","html_url":"https://github.com/DoctorMcKay/node-steam-user/pull/36","diff_url":"https://github.com/DoctorMcKay/node-steam-user/pull/36.diff","patch_url":"https://github.com/DoctorMcKay/node-steam-user/pull/36.patch"},"body":"Added function to redeem game code on the account.\r\n\r\nI had no idea how to parse `purchase_receipt_info`, tried VDF.parse but returned empty object.\r\n\r\nThe result of `CMsgClientPurchaseResponse ` response should look like this:\r\n```\r\n{\r\n        \"eresult\": 1,\r\n        \"purchase_result_details\": 0,\r\n        \"purchase_receipt_info\": {\r\n                \"MessageObject\": {\r\n                        \"TransactionID\": {\r\n                                \"low\": -5334622,\r\n                                \"high\": 126961050,\r\n                                \"unsigned\": true\r\n                        },\r\n                        \"PaymentMethod\": 1,\r\n                        \"PurchaseStatus\": 1,\r\n                        \"ResultDetail\": 0,\r\n                        \"BasePrice\": 0,\r\n                        \"TotalDiscount\": 0,\r\n                        \"Tax\": 0,\r\n                        \"shipping\": 0,\r\n                        \"CurrencyCode\": 0,\r\n                        \"TransactionTime\": 1446344467,\r\n                        \"PackageID\": -1,\r\n                        \"LineItemCount\": 1,\r\n                        \"lineitems\": [\r\n                                {\r\n                                        \"TransactionID\": {\r\n                                                \"low\": -5334622,\r\n                                                \"high\": 126961050,\r\n                                                \"unsigned\": true\r\n                                        },\r\n                                        \"PackageID\": 39041,\r\n                                        \"ItemDescription\": \"CT Special Forces\"\r\n                                }\r\n                        ],\r\n                        \"ErrorHeadline\": \"\",\r\n                        \"ErrorString\": \"\",\r\n                        \"ErrorLinkText\": \"\",\r\n                        \"ErrorLinkURL\": \"\"\r\n                }\r\n        }\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/comments/164688503","html_url":"https://github.com/DoctorMcKay/node-steam-user/pull/36#issuecomment-164688503","issue_url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/36","id":164688503,"user":{"login":"Aareksio","id":11166786,"avatar_url":"https://avatars.githubusercontent.com/u/11166786?v=3","gravatar_id":"","url":"https://api.github.com/users/Aareksio","html_url":"https://github.com/Aareksio","followers_url":"https://api.github.com/users/Aareksio/followers","following_url":"https://api.github.com/users/Aareksio/following{/other_user}","gists_url":"https://api.github.com/users/Aareksio/gists{/gist_id}","starred_url":"https://api.github.com/users/Aareksio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aareksio/subscriptions","organizations_url":"https://api.github.com/users/Aareksio/orgs","repos_url":"https://api.github.com/users/Aareksio/repos","events_url":"https://api.github.com/users/Aareksio/events{/privacy}","received_events_url":"https://api.github.com/users/Aareksio/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T08:49:13Z","updated_at":"2015-12-15T08:49:13Z","body":"Updated, now returns array of [apps objects](https://github.com/DoctorMcKay/node-steam-user#gamesplayedapps) as third argument (empty array if none)."}}