{"action":"created","issue":{"url":"https://api.github.com/repos/AeonLucid/POGOProtos/issues/98","repository_url":"https://api.github.com/repos/AeonLucid/POGOProtos","labels_url":"https://api.github.com/repos/AeonLucid/POGOProtos/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/AeonLucid/POGOProtos/issues/98/comments","events_url":"https://api.github.com/repos/AeonLucid/POGOProtos/issues/98/events","html_url":"https://github.com/AeonLucid/POGOProtos/pull/98","id":168005493,"number":98,"title":"Unknown6 IAPs","user":{"login":"tjhorner","id":2646487,"avatar_url":"https://avatars.githubusercontent.com/u/2646487?v=3","gravatar_id":"","url":"https://api.github.com/users/tjhorner","html_url":"https://github.com/tjhorner","followers_url":"https://api.github.com/users/tjhorner/followers","following_url":"https://api.github.com/users/tjhorner/following{/other_user}","gists_url":"https://api.github.com/users/tjhorner/gists{/gist_id}","starred_url":"https://api.github.com/users/tjhorner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjhorner/subscriptions","organizations_url":"https://api.github.com/users/tjhorner/orgs","repos_url":"https://api.github.com/users/tjhorner/repos","events_url":"https://api.github.com/users/tjhorner/events{/privacy}","received_events_url":"https://api.github.com/users/tjhorner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-28T03:18:08Z","updated_at":"2016-07-28T06:44:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AeonLucid/POGOProtos/pulls/98","html_url":"https://github.com/AeonLucid/POGOProtos/pull/98","diff_url":"https://github.com/AeonLucid/POGOProtos/pull/98.diff","patch_url":"https://github.com/AeonLucid/POGOProtos/pull/98.patch"},"body":"It seems `Unknown6` is much like the `Request` object. It seems like field 1 is the type of request, because when the server is sent 5, it returns everything that's in the shop (so, in-app purchases). I still have no idea what 7 is on the IAPs, it seems to always be 1 (or true). Maybe it's something like \"is_active\", so the client knows if it should show it or allow the user to buy it?\r\n\r\nI've written some messages for IAPs, here are some examples of what the server sent the client:\r\n\r\n### 1 Incense\r\n\r\n```\r\n2 {\r\n  1: \"pgorelease.incenseordinary.1\" // item ID\r\n  // field 2 is absent since this is buying an in game item with pokecoins\r\n  3 { // currency to buy, in this case, 80 pokecoins\r\n    1: \"POKECOIN\"\r\n    2: 80\r\n  }\r\n  5 { // items that the player will get, in this case, 1 incense\r\n    1: \"ITEM_INCENSE_ORDINARY\"\r\n    2: 1\r\n  }\r\n  6 { // this is an item attribute with a key:value pattern\r\n    1: \"CATEGORY\"\r\n    2: \"ITEMS\"\r\n  }\r\n  6 {\r\n    1: \"SORT\"\r\n    2: \"10\" // we need to find out what this means!\r\n  }\r\n  7: 1 // probably success/status\r\n}\r\n```\r\n\r\n### 100 Pokecoins\r\n\r\n```\r\n2 {\r\n  1: \"pgorelease.pokecoin.100\"\r\n  2: 1 // notice this, it's telling the client that this is buying currency with actual money\r\n  // also notice the lack of field 3, the play store/app store tells the app how much it is based on the item ID\r\n  4 {\r\n    1: \"POKECOIN\"\r\n    2: 100\r\n  }\r\n  6 {\r\n    1: \"CATEGORY\"\r\n    2: \"POKECOINS\"\r\n  }\r\n  6 {\r\n    1: \"SORT\"\r\n    2: \"1\"\r\n  }\r\n  7: 1\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/AeonLucid/POGOProtos/issues/comments/235812685","html_url":"https://github.com/AeonLucid/POGOProtos/pull/98#issuecomment-235812685","issue_url":"https://api.github.com/repos/AeonLucid/POGOProtos/issues/98","id":235812685,"user":{"login":"tjhorner","id":2646487,"avatar_url":"https://avatars.githubusercontent.com/u/2646487?v=3","gravatar_id":"","url":"https://api.github.com/users/tjhorner","html_url":"https://github.com/tjhorner","followers_url":"https://api.github.com/users/tjhorner/followers","following_url":"https://api.github.com/users/tjhorner/following{/other_user}","gists_url":"https://api.github.com/users/tjhorner/gists{/gist_id}","starred_url":"https://api.github.com/users/tjhorner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjhorner/subscriptions","organizations_url":"https://api.github.com/users/tjhorner/orgs","repos_url":"https://api.github.com/users/tjhorner/repos","events_url":"https://api.github.com/users/tjhorner/events{/privacy}","received_events_url":"https://api.github.com/users/tjhorner/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T06:44:30Z","updated_at":"2016-07-28T06:44:30Z","body":"@Lennix Right... I'm using a slightly modified version of this proto and didn't look there. I'll change it now.\r\n\r\nAlso why are you censoring your request IDs? They're just random numbers so that the client knows what request a response corresponds to..."}}
{"actor":{"display_login":"tjhorner"}}