{"action":"created","comment":{"url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/comments/154091402","pull_request_review_id":80201226,"id":154091402,"diff_hunk":"@@ -38,9 +40,49 @@ protected function configureOptions(OptionsResolver $resolver)\n         parent::configureOptions($resolver);\n \n         $resolver->setDefaults(array(\n-            'authorization_url' => 'https://www.dropbox.com/1/oauth2/authorize',\n-            'access_token_url' => 'https://api.dropbox.com/1/oauth2/token',\n-            'infos_url' => 'https://api.dropbox.com/1/account/info',\n+          'authorization_url' => 'https://www.dropbox.com/oauth2/authorize',\n+          'access_token_url' => 'https://api.dropbox.com/oauth2/token',\n+          'infos_url' => 'https://api.dropboxapi.com/2/users/get_current_account',\n         ));\n     }\n+\n+    /**\n+     *\n+     * Dropbox API v2 requires a POST request to simply get user info\n+     *\n+     * @param array $accessToken\n+     * @param array $extraParameters\n+     * @return \\HWI\\Bundle\\OAuthBundle\\OAuth\\Response\\UserResponseInterface","path":"OAuth/ResourceOwner/DropboxResourceOwner.php","position":43,"original_position":43,"commit_id":"128fb7446df929adef05a687b49ad6b9b541b290","original_commit_id":"128fb7446df929adef05a687b49ad6b9b541b290","user":{"login":"Soullivaneuh","id":1698357,"avatar_url":"https://avatars0.githubusercontent.com/u/1698357?v=4","gravatar_id":"","url":"https://api.github.com/users/Soullivaneuh","html_url":"https://github.com/Soullivaneuh","followers_url":"https://api.github.com/users/Soullivaneuh/followers","following_url":"https://api.github.com/users/Soullivaneuh/following{/other_user}","gists_url":"https://api.github.com/users/Soullivaneuh/gists{/gist_id}","starred_url":"https://api.github.com/users/Soullivaneuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soullivaneuh/subscriptions","organizations_url":"https://api.github.com/users/Soullivaneuh/orgs","repos_url":"https://api.github.com/users/Soullivaneuh/repos","events_url":"https://api.github.com/users/Soullivaneuh/events{/privacy}","received_events_url":"https://api.github.com/users/Soullivaneuh/received_events","type":"User","site_admin":false},"body":"Please import the class.","created_at":"2017-11-30T14:37:22Z","updated_at":"2017-11-30T14:39:21Z","html_url":"https://github.com/hwi/HWIOAuthBundle/pull/1293#discussion_r154091402","pull_request_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/1293","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/comments/154091402"},"html":{"href":"https://github.com/hwi/HWIOAuthBundle/pull/1293#discussion_r154091402"},"pull_request":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/1293"}}},"pull_request":{"url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/1293","id":152320140,"html_url":"https://github.com/hwi/HWIOAuthBundle/pull/1293","diff_url":"https://github.com/hwi/HWIOAuthBundle/pull/1293.diff","patch_url":"https://github.com/hwi/HWIOAuthBundle/pull/1293.patch","issue_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/1293","number":1293,"state":"open","locked":false,"title":"Implemented getUserInformation for Dropbox v2","user":{"login":"domgraziano","id":7916161,"avatar_url":"https://avatars3.githubusercontent.com/u/7916161?v=4","gravatar_id":"","url":"https://api.github.com/users/domgraziano","html_url":"https://github.com/domgraziano","followers_url":"https://api.github.com/users/domgraziano/followers","following_url":"https://api.github.com/users/domgraziano/following{/other_user}","gists_url":"https://api.github.com/users/domgraziano/gists{/gist_id}","starred_url":"https://api.github.com/users/domgraziano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domgraziano/subscriptions","organizations_url":"https://api.github.com/users/domgraziano/orgs","repos_url":"https://api.github.com/users/domgraziano/repos","events_url":"https://api.github.com/users/domgraziano/events{/privacy}","received_events_url":"https://api.github.com/users/domgraziano/received_events","type":"User","site_admin":false},"body":"Implemented getUserInformation method to comply with changes in Dropbox API V2.\r\nsee https://www.dropbox.com/developers/reference/migration-guide\r\nFor the same reason I have updated identifier mapping to 'account_id' and realname to email since real_name is gone in V2 (is now display_name but nested in a name sub-array within response, and in order to not overcomplicate thing I think it's fine to display email)","created_at":"2017-11-13T19:03:59Z","updated_at":"2017-11-30T14:39:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a90acfd0ab70814613d7e093a0e597c5e15e71c7","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/1293/commits","review_comments_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/1293/comments","review_comment_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/1293/comments","statuses_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/statuses/128fb7446df929adef05a687b49ad6b9b541b290","head":{"label":"domgraziano:master","ref":"master","sha":"128fb7446df929adef05a687b49ad6b9b541b290","user":{"login":"domgraziano","id":7916161,"avatar_url":"https://avatars3.githubusercontent.com/u/7916161?v=4","gravatar_id":"","url":"https://api.github.com/users/domgraziano","html_url":"https://github.com/domgraziano","followers_url":"https://api.github.com/users/domgraziano/followers","following_url":"https://api.github.com/users/domgraziano/following{/other_user}","gists_url":"https://api.github.com/users/domgraziano/gists{/gist_id}","starred_url":"https://api.github.com/users/domgraziano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domgraziano/subscriptions","organizations_url":"https://api.github.com/users/domgraziano/orgs","repos_url":"https://api.github.com/users/domgraziano/repos","events_url":"https://api.github.com/users/domgraziano/events{/privacy}","received_events_url":"https://api.github.com/users/domgraziano/received_events","type":"User","site_admin":false},"repo":{"id":110588212,"name":"HWIOAuthBundle","full_name":"domgraziano/HWIOAuthBundle","owner":{"login":"domgraziano","id":7916161,"avatar_url":"https://avatars3.githubusercontent.com/u/7916161?v=4","gravatar_id":"","url":"https://api.github.com/users/domgraziano","html_url":"https://github.com/domgraziano","followers_url":"https://api.github.com/users/domgraziano/followers","following_url":"https://api.github.com/users/domgraziano/following{/other_user}","gists_url":"https://api.github.com/users/domgraziano/gists{/gist_id}","starred_url":"https://api.github.com/users/domgraziano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domgraziano/subscriptions","organizations_url":"https://api.github.com/users/domgraziano/orgs","repos_url":"https://api.github.com/users/domgraziano/repos","events_url":"https://api.github.com/users/domgraziano/events{/privacy}","received_events_url":"https://api.github.com/users/domgraziano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/domgraziano/HWIOAuthBundle","description":"OAuth client integration for Symfony. Supports both OAuth1.0a and OAuth2.","fork":true,"url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle","forks_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/forks","keys_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/teams","hooks_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/hooks","issue_events_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/issues/events{/number}","events_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/events","assignees_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/assignees{/user}","branches_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/branches{/branch}","tags_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/tags","blobs_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/languages","stargazers_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/stargazers","contributors_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/contributors","subscribers_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/subscribers","subscription_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/subscription","commits_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/contents/{+path}","compare_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/merges","archive_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/downloads","issues_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/issues{/number}","pulls_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/labels{/name}","releases_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/releases{/id}","deployments_url":"https://api.github.com/repos/domgraziano/HWIOAuthBundle/deployments","created_at":"2017-11-13T18:54:05Z","updated_at":"2017-11-13T18:54:07Z","pushed_at":"2017-11-14T11:30:00Z","git_url":"git://github.com/domgraziano/HWIOAuthBundle.git","ssh_url":"git@github.com:domgraziano/HWIOAuthBundle.git","clone_url":"https://github.com/domgraziano/HWIOAuthBundle.git","svn_url":"https://github.com/domgraziano/HWIOAuthBundle","homepage":"","size":2103,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hwi:master","ref":"master","sha":"80c6862df12259cf547497eb4fd10762a515a40e","user":{"login":"hwi","id":1150427,"avatar_url":"https://avatars2.githubusercontent.com/u/1150427?v=4","gravatar_id":"","url":"https://api.github.com/users/hwi","html_url":"https://github.com/hwi","followers_url":"https://api.github.com/users/hwi/followers","following_url":"https://api.github.com/users/hwi/following{/other_user}","gists_url":"https://api.github.com/users/hwi/gists{/gist_id}","starred_url":"https://api.github.com/users/hwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwi/subscriptions","organizations_url":"https://api.github.com/users/hwi/orgs","repos_url":"https://api.github.com/users/hwi/repos","events_url":"https://api.github.com/users/hwi/events{/privacy}","received_events_url":"https://api.github.com/users/hwi/received_events","type":"Organization","site_admin":false},"repo":{"id":3601728,"name":"HWIOAuthBundle","full_name":"hwi/HWIOAuthBundle","owner":{"login":"hwi","id":1150427,"avatar_url":"https://avatars2.githubusercontent.com/u/1150427?v=4","gravatar_id":"","url":"https://api.github.com/users/hwi","html_url":"https://github.com/hwi","followers_url":"https://api.github.com/users/hwi/followers","following_url":"https://api.github.com/users/hwi/following{/other_user}","gists_url":"https://api.github.com/users/hwi/gists{/gist_id}","starred_url":"https://api.github.com/users/hwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwi/subscriptions","organizations_url":"https://api.github.com/users/hwi/orgs","repos_url":"https://api.github.com/users/hwi/repos","events_url":"https://api.github.com/users/hwi/events{/privacy}","received_events_url":"https://api.github.com/users/hwi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hwi/HWIOAuthBundle","description":"OAuth client integration for Symfony. Supports both OAuth1.0a and OAuth2.","fork":false,"url":"https://api.github.com/repos/hwi/HWIOAuthBundle","forks_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/forks","keys_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/teams","hooks_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/hooks","issue_events_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/events{/number}","events_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/events","assignees_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/assignees{/user}","branches_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/branches{/branch}","tags_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/tags","blobs_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/languages","stargazers_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/stargazers","contributors_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/contributors","subscribers_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/subscribers","subscription_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/subscription","commits_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/contents/{+path}","compare_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/merges","archive_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/downloads","issues_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues{/number}","pulls_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/labels{/name}","releases_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/releases{/id}","deployments_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/deployments","created_at":"2012-03-02T11:56:40Z","updated_at":"2017-11-29T15:02:45Z","pushed_at":"2017-11-23T14:18:25Z","git_url":"git://github.com/hwi/HWIOAuthBundle.git","ssh_url":"git@github.com:hwi/HWIOAuthBundle.git","clone_url":"https://github.com/hwi/HWIOAuthBundle.git","svn_url":"https://github.com/hwi/HWIOAuthBundle","homepage":"","size":2093,"stargazers_count":1507,"watchers_count":1507,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":622,"mirror_url":null,"archived":false,"open_issues_count":216,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":622,"open_issues":216,"watchers":1507,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/1293"},"html":{"href":"https://github.com/hwi/HWIOAuthBundle/pull/1293"},"issue":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/1293"},"comments":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/1293/comments"},"review_comments":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/1293/comments"},"review_comment":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/1293/commits"},"statuses":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/statuses/128fb7446df929adef05a687b49ad6b9b541b290"}},"author_association":"NONE"}}
{"actor":{"display_login":"Soullivaneuh"}}