{"action":"created","issue":{"url":"https://api.github.com/repos/mgp25/Instagram-API/issues/34","repository_url":"https://api.github.com/repos/mgp25/Instagram-API","labels_url":"https://api.github.com/repos/mgp25/Instagram-API/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/mgp25/Instagram-API/issues/34/comments","events_url":"https://api.github.com/repos/mgp25/Instagram-API/issues/34/events","html_url":"https://github.com/mgp25/Instagram-API/issues/34","id":126487511,"number":34,"title":"Add location to posts","user":{"login":"RageBrahimi","id":1545490,"avatar_url":"https://avatars.githubusercontent.com/u/1545490?v=3","gravatar_id":"","url":"https://api.github.com/users/RageBrahimi","html_url":"https://github.com/RageBrahimi","followers_url":"https://api.github.com/users/RageBrahimi/followers","following_url":"https://api.github.com/users/RageBrahimi/following{/other_user}","gists_url":"https://api.github.com/users/RageBrahimi/gists{/gist_id}","starred_url":"https://api.github.com/users/RageBrahimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RageBrahimi/subscriptions","organizations_url":"https://api.github.com/users/RageBrahimi/orgs","repos_url":"https://api.github.com/users/RageBrahimi/repos","events_url":"https://api.github.com/users/RageBrahimi/events{/privacy}","received_events_url":"https://api.github.com/users/RageBrahimi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-13T18:53:46Z","updated_at":"2016-03-12T10:36:10Z","closed_at":"2016-01-31T01:08:19Z","body":"######  **How do you add a location to uploadPhoto.php**\r\n\r\nI'm aware it's something on the lines of the code below, but how do we add it to 'Instagram.php', but I'm not entirely sure how.\r\n\r\n```\r\n     device_timestamp = 0,\r\n     caption = xxx,\r\n     location = {“\r\n          name”: ”xxx”,\r\n          ”lng”: 0,\r\n          ”lat”: 0,\r\n          ”external_id”: 0,\r\n          “address”: ”xxx”,\r\n          ”external_source”: ”foursquare”\r\n     },\r\n     source_type = 0,\r\n     filter_type = 15\r\n```\r\n\r\nSomething of the lines of this I assume? (below doesn't work):\r\n\r\n```\r\n      'caption'     => $caption,\r\n      'upload_id'   => $upload_id,\r\n      'source_type' => 3,\r\n      'location'       =>\r\n       array(\r\n          'name'          => $name,\r\n          'lng'        => $lng,\r\n          'lat'        => $lat,\r\n          'black_pixels_ratio' => 0\r\n       ),\r\n       ...\r\n```"},"comment":{"url":"https://api.github.com/repos/mgp25/Instagram-API/issues/comments/195712440","html_url":"https://github.com/mgp25/Instagram-API/issues/34#issuecomment-195712440","issue_url":"https://api.github.com/repos/mgp25/Instagram-API/issues/34","id":195712440,"user":{"login":"RageBrahimi","id":1545490,"avatar_url":"https://avatars.githubusercontent.com/u/1545490?v=3","gravatar_id":"","url":"https://api.github.com/users/RageBrahimi","html_url":"https://github.com/RageBrahimi","followers_url":"https://api.github.com/users/RageBrahimi/followers","following_url":"https://api.github.com/users/RageBrahimi/following{/other_user}","gists_url":"https://api.github.com/users/RageBrahimi/gists{/gist_id}","starred_url":"https://api.github.com/users/RageBrahimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RageBrahimi/subscriptions","organizations_url":"https://api.github.com/users/RageBrahimi/orgs","repos_url":"https://api.github.com/users/RageBrahimi/repos","events_url":"https://api.github.com/users/RageBrahimi/events{/privacy}","received_events_url":"https://api.github.com/users/RageBrahimi/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T10:36:10Z","updated_at":"2016-03-12T10:36:10Z","body":"@MaximMikulich Just add it here for now so everyone can use it, and when @mgp25 is ready, he'll add it to the source."}}