{"action":"opened","number":23,"pull_request":{"url":"https://api.github.com/repos/philadams/habitica/pulls/23","id":75149273,"html_url":"https://github.com/philadams/habitica/pull/23","diff_url":"https://github.com/philadams/habitica/pull/23.diff","patch_url":"https://github.com/philadams/habitica/pull/23.patch","issue_url":"https://api.github.com/repos/philadams/habitica/issues/23","number":23,"state":"open","locked":false,"title":"API v3 Updates","user":{"login":"synacktic","id":1910076,"avatar_url":"https://avatars.githubusercontent.com/u/1910076?v=3","gravatar_id":"","url":"https://api.github.com/users/synacktic","html_url":"https://github.com/synacktic","followers_url":"https://api.github.com/users/synacktic/followers","following_url":"https://api.github.com/users/synacktic/following{/other_user}","gists_url":"https://api.github.com/users/synacktic/gists{/gist_id}","starred_url":"https://api.github.com/users/synacktic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synacktic/subscriptions","organizations_url":"https://api.github.com/users/synacktic/orgs","repos_url":"https://api.github.com/users/synacktic/repos","events_url":"https://api.github.com/users/synacktic/events{/privacy}","received_events_url":"https://api.github.com/users/synacktic/received_events","type":"User","site_admin":false},"body":"I updated the project to work with Habitica API v3 while trying to make as few changes as possible to your code. \r\n\r\nThe biggest change is the URI builder. Since /user/tasks is now /tasks/user, but (for example) /user/status is only /status, I added an elif to check if the request is for a task. While doing that, I made the URI build out a section at a time instead of repeating (self.auth['url'], API_URI_BASE) each time.\r\n\r\nStill, this is a tiny change and the rest are even smaller and very obvious. \r\n\r\nHere is the Habitica page discussing the task layout and return data changes:\r\nhttp://devs.habitica.com/api-v2-v3-migration-guide/\r\n\r\nI did not touch the error reporting, there did not seem to be much anyway.","created_at":"2016-06-24T17:49:29Z","updated_at":"2016-06-24T17:49:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/philadams/habitica/pulls/23/commits","review_comments_url":"https://api.github.com/repos/philadams/habitica/pulls/23/comments","review_comment_url":"https://api.github.com/repos/philadams/habitica/pulls/comments{/number}","comments_url":"https://api.github.com/repos/philadams/habitica/issues/23/comments","statuses_url":"https://api.github.com/repos/philadams/habitica/statuses/08f3380a7c5691e57901090f38859a436bb6581a","head":{"label":"synacktic:master","ref":"master","sha":"08f3380a7c5691e57901090f38859a436bb6581a","user":{"login":"synacktic","id":1910076,"avatar_url":"https://avatars.githubusercontent.com/u/1910076?v=3","gravatar_id":"","url":"https://api.github.com/users/synacktic","html_url":"https://github.com/synacktic","followers_url":"https://api.github.com/users/synacktic/followers","following_url":"https://api.github.com/users/synacktic/following{/other_user}","gists_url":"https://api.github.com/users/synacktic/gists{/gist_id}","starred_url":"https://api.github.com/users/synacktic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synacktic/subscriptions","organizations_url":"https://api.github.com/users/synacktic/orgs","repos_url":"https://api.github.com/users/synacktic/repos","events_url":"https://api.github.com/users/synacktic/events{/privacy}","received_events_url":"https://api.github.com/users/synacktic/received_events","type":"User","site_admin":false},"repo":{"id":61901050,"name":"habitica","full_name":"synacktic/habitica","owner":{"login":"synacktic","id":1910076,"avatar_url":"https://avatars.githubusercontent.com/u/1910076?v=3","gravatar_id":"","url":"https://api.github.com/users/synacktic","html_url":"https://github.com/synacktic","followers_url":"https://api.github.com/users/synacktic/followers","following_url":"https://api.github.com/users/synacktic/following{/other_user}","gists_url":"https://api.github.com/users/synacktic/gists{/gist_id}","starred_url":"https://api.github.com/users/synacktic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synacktic/subscriptions","organizations_url":"https://api.github.com/users/synacktic/orgs","repos_url":"https://api.github.com/users/synacktic/repos","events_url":"https://api.github.com/users/synacktic/events{/privacy}","received_events_url":"https://api.github.com/users/synacktic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/synacktic/habitica","description":"Command-line interface to HabitRPG","fork":true,"url":"https://api.github.com/repos/synacktic/habitica","forks_url":"https://api.github.com/repos/synacktic/habitica/forks","keys_url":"https://api.github.com/repos/synacktic/habitica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/synacktic/habitica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/synacktic/habitica/teams","hooks_url":"https://api.github.com/repos/synacktic/habitica/hooks","issue_events_url":"https://api.github.com/repos/synacktic/habitica/issues/events{/number}","events_url":"https://api.github.com/repos/synacktic/habitica/events","assignees_url":"https://api.github.com/repos/synacktic/habitica/assignees{/user}","branches_url":"https://api.github.com/repos/synacktic/habitica/branches{/branch}","tags_url":"https://api.github.com/repos/synacktic/habitica/tags","blobs_url":"https://api.github.com/repos/synacktic/habitica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/synacktic/habitica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/synacktic/habitica/git/refs{/sha}","trees_url":"https://api.github.com/repos/synacktic/habitica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/synacktic/habitica/statuses/{sha}","languages_url":"https://api.github.com/repos/synacktic/habitica/languages","stargazers_url":"https://api.github.com/repos/synacktic/habitica/stargazers","contributors_url":"https://api.github.com/repos/synacktic/habitica/contributors","subscribers_url":"https://api.github.com/repos/synacktic/habitica/subscribers","subscription_url":"https://api.github.com/repos/synacktic/habitica/subscription","commits_url":"https://api.github.com/repos/synacktic/habitica/commits{/sha}","git_commits_url":"https://api.github.com/repos/synacktic/habitica/git/commits{/sha}","comments_url":"https://api.github.com/repos/synacktic/habitica/comments{/number}","issue_comment_url":"https://api.github.com/repos/synacktic/habitica/issues/comments{/number}","contents_url":"https://api.github.com/repos/synacktic/habitica/contents/{+path}","compare_url":"https://api.github.com/repos/synacktic/habitica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/synacktic/habitica/merges","archive_url":"https://api.github.com/repos/synacktic/habitica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/synacktic/habitica/downloads","issues_url":"https://api.github.com/repos/synacktic/habitica/issues{/number}","pulls_url":"https://api.github.com/repos/synacktic/habitica/pulls{/number}","milestones_url":"https://api.github.com/repos/synacktic/habitica/milestones{/number}","notifications_url":"https://api.github.com/repos/synacktic/habitica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/synacktic/habitica/labels{/name}","releases_url":"https://api.github.com/repos/synacktic/habitica/releases{/id}","deployments_url":"https://api.github.com/repos/synacktic/habitica/deployments","created_at":"2016-06-24T17:28:41Z","updated_at":"2016-06-24T17:28:42Z","pushed_at":"2016-06-24T17:39:46Z","git_url":"git://github.com/synacktic/habitica.git","ssh_url":"git@github.com:synacktic/habitica.git","clone_url":"https://github.com/synacktic/habitica.git","svn_url":"https://github.com/synacktic/habitica","homepage":null,"size":62,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"philadams:master","ref":"master","sha":"11bb0f2af9713d3554e482e936ac73e2ac6b354f","user":{"login":"philadams","id":8108,"avatar_url":"https://avatars.githubusercontent.com/u/8108?v=3","gravatar_id":"","url":"https://api.github.com/users/philadams","html_url":"https://github.com/philadams","followers_url":"https://api.github.com/users/philadams/followers","following_url":"https://api.github.com/users/philadams/following{/other_user}","gists_url":"https://api.github.com/users/philadams/gists{/gist_id}","starred_url":"https://api.github.com/users/philadams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philadams/subscriptions","organizations_url":"https://api.github.com/users/philadams/orgs","repos_url":"https://api.github.com/users/philadams/repos","events_url":"https://api.github.com/users/philadams/events{/privacy}","received_events_url":"https://api.github.com/users/philadams/received_events","type":"User","site_admin":false},"repo":{"id":11625961,"name":"habitica","full_name":"philadams/habitica","owner":{"login":"philadams","id":8108,"avatar_url":"https://avatars.githubusercontent.com/u/8108?v=3","gravatar_id":"","url":"https://api.github.com/users/philadams","html_url":"https://github.com/philadams","followers_url":"https://api.github.com/users/philadams/followers","following_url":"https://api.github.com/users/philadams/following{/other_user}","gists_url":"https://api.github.com/users/philadams/gists{/gist_id}","starred_url":"https://api.github.com/users/philadams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philadams/subscriptions","organizations_url":"https://api.github.com/users/philadams/orgs","repos_url":"https://api.github.com/users/philadams/repos","events_url":"https://api.github.com/users/philadams/events{/privacy}","received_events_url":"https://api.github.com/users/philadams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/philadams/habitica","description":"Command-line interface to HabitRPG","fork":false,"url":"https://api.github.com/repos/philadams/habitica","forks_url":"https://api.github.com/repos/philadams/habitica/forks","keys_url":"https://api.github.com/repos/philadams/habitica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/philadams/habitica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/philadams/habitica/teams","hooks_url":"https://api.github.com/repos/philadams/habitica/hooks","issue_events_url":"https://api.github.com/repos/philadams/habitica/issues/events{/number}","events_url":"https://api.github.com/repos/philadams/habitica/events","assignees_url":"https://api.github.com/repos/philadams/habitica/assignees{/user}","branches_url":"https://api.github.com/repos/philadams/habitica/branches{/branch}","tags_url":"https://api.github.com/repos/philadams/habitica/tags","blobs_url":"https://api.github.com/repos/philadams/habitica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/philadams/habitica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/philadams/habitica/git/refs{/sha}","trees_url":"https://api.github.com/repos/philadams/habitica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/philadams/habitica/statuses/{sha}","languages_url":"https://api.github.com/repos/philadams/habitica/languages","stargazers_url":"https://api.github.com/repos/philadams/habitica/stargazers","contributors_url":"https://api.github.com/repos/philadams/habitica/contributors","subscribers_url":"https://api.github.com/repos/philadams/habitica/subscribers","subscription_url":"https://api.github.com/repos/philadams/habitica/subscription","commits_url":"https://api.github.com/repos/philadams/habitica/commits{/sha}","git_commits_url":"https://api.github.com/repos/philadams/habitica/git/commits{/sha}","comments_url":"https://api.github.com/repos/philadams/habitica/comments{/number}","issue_comment_url":"https://api.github.com/repos/philadams/habitica/issues/comments{/number}","contents_url":"https://api.github.com/repos/philadams/habitica/contents/{+path}","compare_url":"https://api.github.com/repos/philadams/habitica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/philadams/habitica/merges","archive_url":"https://api.github.com/repos/philadams/habitica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/philadams/habitica/downloads","issues_url":"https://api.github.com/repos/philadams/habitica/issues{/number}","pulls_url":"https://api.github.com/repos/philadams/habitica/pulls{/number}","milestones_url":"https://api.github.com/repos/philadams/habitica/milestones{/number}","notifications_url":"https://api.github.com/repos/philadams/habitica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/philadams/habitica/labels{/name}","releases_url":"https://api.github.com/repos/philadams/habitica/releases{/id}","deployments_url":"https://api.github.com/repos/philadams/habitica/deployments","created_at":"2013-07-24T04:13:03Z","updated_at":"2016-06-09T14:38:40Z","pushed_at":"2016-06-24T17:49:29Z","git_url":"git://github.com/philadams/habitica.git","ssh_url":"git@github.com:philadams/habitica.git","clone_url":"https://github.com/philadams/habitica.git","svn_url":"https://github.com/philadams/habitica","homepage":null,"size":62,"stargazers_count":48,"watchers_count":48,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":10,"forks":12,"open_issues":10,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/philadams/habitica/pulls/23"},"html":{"href":"https://github.com/philadams/habitica/pull/23"},"issue":{"href":"https://api.github.com/repos/philadams/habitica/issues/23"},"comments":{"href":"https://api.github.com/repos/philadams/habitica/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/philadams/habitica/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/philadams/habitica/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/philadams/habitica/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/philadams/habitica/statuses/08f3380a7c5691e57901090f38859a436bb6581a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":18,"deletions":15,"changed_files":2}}
{"actor":{"display_login":"synacktic"}}