{"action":"opened","number":24,"pull_request":{"url":"https://api.github.com/repos/rickhousley/happn/pulls/24","id":174843322,"html_url":"https://github.com/rickhousley/happn/pull/24","diff_url":"https://github.com/rickhousley/happn/pull/24.diff","patch_url":"https://github.com/rickhousley/happn/pull/24.patch","issue_url":"https://api.github.com/repos/rickhousley/happn/issues/24","number":24,"state":"open","locked":false,"title":"fixed issues with set_device and set_location; added get_devices()","user":{"login":"flipdazed","id":8991915,"avatar_url":"https://avatars3.githubusercontent.com/u/8991915?v=4","gravatar_id":"","url":"https://api.github.com/users/flipdazed","html_url":"https://github.com/flipdazed","followers_url":"https://api.github.com/users/flipdazed/followers","following_url":"https://api.github.com/users/flipdazed/following{/other_user}","gists_url":"https://api.github.com/users/flipdazed/gists{/gist_id}","starred_url":"https://api.github.com/users/flipdazed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flipdazed/subscriptions","organizations_url":"https://api.github.com/users/flipdazed/orgs","repos_url":"https://api.github.com/users/flipdazed/repos","events_url":"https://api.github.com/users/flipdazed/events{/privacy}","received_events_url":"https://api.github.com/users/flipdazed/received_events","type":"User","site_admin":false},"body":"It appears that the API changed PUT to POST for `get_devices` and updated the content length in the headers for `set_position`:\r\n\r\n1. Updated content length in `set_position`\r\n```python\r\nIn [21]: from geopy.geocoders import Nominatim\r\n    ...: geolocator = Nominatim()\r\n    ...: location = geolocator.geocode(\"Some address\")\r\n    ...: \r\n\r\nIn [22]: myUser.set_position(location.latitude, location.longitude)\r\nDEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.happn.fr\r\nDEBUG:urllib3.connectionpool:https://api.happn.fr:443 \"PUT /api/users/<userID>/devices/<deviceID> HTTP/1.1\" 200 None\r\nDEBUG:root:Set User position at <my_latitude>, <my_longditude>\r\n```\r\n\r\n2. Created `put`->`post` in `get_devices`\r\n```python\r\nIn [9]: myUser.get_devices()\r\nDEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.happn.fr\r\nDEBUG:urllib3.connectionpool:https://api.happn.fr:443 \"GET /api/users/<userID>/devices/ HTTP/1.1\" 200 None\r\n```\r\n\r\n2. Updated `put`->`post` in `set_device`\r\n```python\r\nIn [6]: myUser.set_device()\r\nDEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.happn.fr\r\nDEBUG:urllib3.connectionpool:https://api.happn.fr:443 \"POST /api/users/<userID>/devices/<deviceID> HTTP/1.1\" 200 None\r\nDEBUG:root:Device Set\r\n```\r\n","created_at":"2018-03-14T03:07:35Z","updated_at":"2018-03-14T03:07:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rickhousley/happn/pulls/24/commits","review_comments_url":"https://api.github.com/repos/rickhousley/happn/pulls/24/comments","review_comment_url":"https://api.github.com/repos/rickhousley/happn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rickhousley/happn/issues/24/comments","statuses_url":"https://api.github.com/repos/rickhousley/happn/statuses/9229c45216b187457c8fb889955c7e823436a87a","head":{"label":"flipdazed:master","ref":"master","sha":"9229c45216b187457c8fb889955c7e823436a87a","user":{"login":"flipdazed","id":8991915,"avatar_url":"https://avatars3.githubusercontent.com/u/8991915?v=4","gravatar_id":"","url":"https://api.github.com/users/flipdazed","html_url":"https://github.com/flipdazed","followers_url":"https://api.github.com/users/flipdazed/followers","following_url":"https://api.github.com/users/flipdazed/following{/other_user}","gists_url":"https://api.github.com/users/flipdazed/gists{/gist_id}","starred_url":"https://api.github.com/users/flipdazed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flipdazed/subscriptions","organizations_url":"https://api.github.com/users/flipdazed/orgs","repos_url":"https://api.github.com/users/flipdazed/repos","events_url":"https://api.github.com/users/flipdazed/events{/privacy}","received_events_url":"https://api.github.com/users/flipdazed/received_events","type":"User","site_admin":false},"repo":{"id":124965980,"name":"happn","full_name":"flipdazed/happn","owner":{"login":"flipdazed","id":8991915,"avatar_url":"https://avatars3.githubusercontent.com/u/8991915?v=4","gravatar_id":"","url":"https://api.github.com/users/flipdazed","html_url":"https://github.com/flipdazed","followers_url":"https://api.github.com/users/flipdazed/followers","following_url":"https://api.github.com/users/flipdazed/following{/other_user}","gists_url":"https://api.github.com/users/flipdazed/gists{/gist_id}","starred_url":"https://api.github.com/users/flipdazed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flipdazed/subscriptions","organizations_url":"https://api.github.com/users/flipdazed/orgs","repos_url":"https://api.github.com/users/flipdazed/repos","events_url":"https://api.github.com/users/flipdazed/events{/privacy}","received_events_url":"https://api.github.com/users/flipdazed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flipdazed/happn","description":"Python & PHP modules for interacting with the Happn's REST API","fork":true,"url":"https://api.github.com/repos/flipdazed/happn","forks_url":"https://api.github.com/repos/flipdazed/happn/forks","keys_url":"https://api.github.com/repos/flipdazed/happn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flipdazed/happn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flipdazed/happn/teams","hooks_url":"https://api.github.com/repos/flipdazed/happn/hooks","issue_events_url":"https://api.github.com/repos/flipdazed/happn/issues/events{/number}","events_url":"https://api.github.com/repos/flipdazed/happn/events","assignees_url":"https://api.github.com/repos/flipdazed/happn/assignees{/user}","branches_url":"https://api.github.com/repos/flipdazed/happn/branches{/branch}","tags_url":"https://api.github.com/repos/flipdazed/happn/tags","blobs_url":"https://api.github.com/repos/flipdazed/happn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flipdazed/happn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flipdazed/happn/git/refs{/sha}","trees_url":"https://api.github.com/repos/flipdazed/happn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flipdazed/happn/statuses/{sha}","languages_url":"https://api.github.com/repos/flipdazed/happn/languages","stargazers_url":"https://api.github.com/repos/flipdazed/happn/stargazers","contributors_url":"https://api.github.com/repos/flipdazed/happn/contributors","subscribers_url":"https://api.github.com/repos/flipdazed/happn/subscribers","subscription_url":"https://api.github.com/repos/flipdazed/happn/subscription","commits_url":"https://api.github.com/repos/flipdazed/happn/commits{/sha}","git_commits_url":"https://api.github.com/repos/flipdazed/happn/git/commits{/sha}","comments_url":"https://api.github.com/repos/flipdazed/happn/comments{/number}","issue_comment_url":"https://api.github.com/repos/flipdazed/happn/issues/comments{/number}","contents_url":"https://api.github.com/repos/flipdazed/happn/contents/{+path}","compare_url":"https://api.github.com/repos/flipdazed/happn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flipdazed/happn/merges","archive_url":"https://api.github.com/repos/flipdazed/happn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flipdazed/happn/downloads","issues_url":"https://api.github.com/repos/flipdazed/happn/issues{/number}","pulls_url":"https://api.github.com/repos/flipdazed/happn/pulls{/number}","milestones_url":"https://api.github.com/repos/flipdazed/happn/milestones{/number}","notifications_url":"https://api.github.com/repos/flipdazed/happn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flipdazed/happn/labels{/name}","releases_url":"https://api.github.com/repos/flipdazed/happn/releases{/id}","deployments_url":"https://api.github.com/repos/flipdazed/happn/deployments","created_at":"2018-03-12T23:52:33Z","updated_at":"2018-03-14T03:03:45Z","pushed_at":"2018-03-14T03:03:44Z","git_url":"git://github.com/flipdazed/happn.git","ssh_url":"git@github.com:flipdazed/happn.git","clone_url":"https://github.com/flipdazed/happn.git","svn_url":"https://github.com/flipdazed/happn","homepage":"","size":109,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rickhousley:master","ref":"master","sha":"b2a6493895dff0dd538f650ebf3e0303fcc71509","user":{"login":"rickhousley","id":8485113,"avatar_url":"https://avatars1.githubusercontent.com/u/8485113?v=4","gravatar_id":"","url":"https://api.github.com/users/rickhousley","html_url":"https://github.com/rickhousley","followers_url":"https://api.github.com/users/rickhousley/followers","following_url":"https://api.github.com/users/rickhousley/following{/other_user}","gists_url":"https://api.github.com/users/rickhousley/gists{/gist_id}","starred_url":"https://api.github.com/users/rickhousley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickhousley/subscriptions","organizations_url":"https://api.github.com/users/rickhousley/orgs","repos_url":"https://api.github.com/users/rickhousley/repos","events_url":"https://api.github.com/users/rickhousley/events{/privacy}","received_events_url":"https://api.github.com/users/rickhousley/received_events","type":"User","site_admin":false},"repo":{"id":30839530,"name":"happn","full_name":"rickhousley/happn","owner":{"login":"rickhousley","id":8485113,"avatar_url":"https://avatars1.githubusercontent.com/u/8485113?v=4","gravatar_id":"","url":"https://api.github.com/users/rickhousley","html_url":"https://github.com/rickhousley","followers_url":"https://api.github.com/users/rickhousley/followers","following_url":"https://api.github.com/users/rickhousley/following{/other_user}","gists_url":"https://api.github.com/users/rickhousley/gists{/gist_id}","starred_url":"https://api.github.com/users/rickhousley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickhousley/subscriptions","organizations_url":"https://api.github.com/users/rickhousley/orgs","repos_url":"https://api.github.com/users/rickhousley/repos","events_url":"https://api.github.com/users/rickhousley/events{/privacy}","received_events_url":"https://api.github.com/users/rickhousley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rickhousley/happn","description":"Python & PHP modules for interacting with the Happn's REST API","fork":false,"url":"https://api.github.com/repos/rickhousley/happn","forks_url":"https://api.github.com/repos/rickhousley/happn/forks","keys_url":"https://api.github.com/repos/rickhousley/happn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rickhousley/happn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rickhousley/happn/teams","hooks_url":"https://api.github.com/repos/rickhousley/happn/hooks","issue_events_url":"https://api.github.com/repos/rickhousley/happn/issues/events{/number}","events_url":"https://api.github.com/repos/rickhousley/happn/events","assignees_url":"https://api.github.com/repos/rickhousley/happn/assignees{/user}","branches_url":"https://api.github.com/repos/rickhousley/happn/branches{/branch}","tags_url":"https://api.github.com/repos/rickhousley/happn/tags","blobs_url":"https://api.github.com/repos/rickhousley/happn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rickhousley/happn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rickhousley/happn/git/refs{/sha}","trees_url":"https://api.github.com/repos/rickhousley/happn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rickhousley/happn/statuses/{sha}","languages_url":"https://api.github.com/repos/rickhousley/happn/languages","stargazers_url":"https://api.github.com/repos/rickhousley/happn/stargazers","contributors_url":"https://api.github.com/repos/rickhousley/happn/contributors","subscribers_url":"https://api.github.com/repos/rickhousley/happn/subscribers","subscription_url":"https://api.github.com/repos/rickhousley/happn/subscription","commits_url":"https://api.github.com/repos/rickhousley/happn/commits{/sha}","git_commits_url":"https://api.github.com/repos/rickhousley/happn/git/commits{/sha}","comments_url":"https://api.github.com/repos/rickhousley/happn/comments{/number}","issue_comment_url":"https://api.github.com/repos/rickhousley/happn/issues/comments{/number}","contents_url":"https://api.github.com/repos/rickhousley/happn/contents/{+path}","compare_url":"https://api.github.com/repos/rickhousley/happn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rickhousley/happn/merges","archive_url":"https://api.github.com/repos/rickhousley/happn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rickhousley/happn/downloads","issues_url":"https://api.github.com/repos/rickhousley/happn/issues{/number}","pulls_url":"https://api.github.com/repos/rickhousley/happn/pulls{/number}","milestones_url":"https://api.github.com/repos/rickhousley/happn/milestones{/number}","notifications_url":"https://api.github.com/repos/rickhousley/happn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rickhousley/happn/labels{/name}","releases_url":"https://api.github.com/repos/rickhousley/happn/releases{/id}","deployments_url":"https://api.github.com/repos/rickhousley/happn/deployments","created_at":"2015-02-15T19:46:11Z","updated_at":"2017-12-14T04:45:25Z","pushed_at":"2017-12-12T07:49:25Z","git_url":"git://github.com/rickhousley/happn.git","ssh_url":"git@github.com:rickhousley/happn.git","clone_url":"https://github.com/rickhousley/happn.git","svn_url":"https://github.com/rickhousley/happn","homepage":"","size":109,"stargazers_count":39,"watchers_count":39,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":16,"open_issues":2,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rickhousley/happn/pulls/24"},"html":{"href":"https://github.com/rickhousley/happn/pull/24"},"issue":{"href":"https://api.github.com/repos/rickhousley/happn/issues/24"},"comments":{"href":"https://api.github.com/repos/rickhousley/happn/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/rickhousley/happn/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/rickhousley/happn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rickhousley/happn/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/rickhousley/happn/statuses/9229c45216b187457c8fb889955c7e823436a87a"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":35,"deletions":5,"changed_files":3}}
{"actor":{"display_login":"flipdazed"}}