{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/SocialiteProviders/Reddit/pulls/1","id":37959338,"html_url":"https://github.com/SocialiteProviders/Reddit/pull/1","diff_url":"https://github.com/SocialiteProviders/Reddit/pull/1.diff","patch_url":"https://github.com/SocialiteProviders/Reddit/pull/1.patch","issue_url":"https://api.github.com/repos/SocialiteProviders/Reddit/issues/1","number":1,"state":"closed","locked":false,"title":"Changed Provider to use form_params instead of deprecated body","user":{"login":"taion809","id":5170979,"avatar_url":"https://avatars.githubusercontent.com/u/5170979?v=3","gravatar_id":"","url":"https://api.github.com/users/taion809","html_url":"https://github.com/taion809","followers_url":"https://api.github.com/users/taion809/followers","following_url":"https://api.github.com/users/taion809/following{/other_user}","gists_url":"https://api.github.com/users/taion809/gists{/gist_id}","starred_url":"https://api.github.com/users/taion809/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taion809/subscriptions","organizations_url":"https://api.github.com/users/taion809/orgs","repos_url":"https://api.github.com/users/taion809/repos","events_url":"https://api.github.com/users/taion809/events{/privacy}","received_events_url":"https://api.github.com/users/taion809/received_events","type":"User","site_admin":false},"body":"The usage of body in the request options array has been deprecated in favor of \"form_params\" or \"multipart\".\r\n\r\nExample error in laravel 5.1\r\n\r\n```\r\nInvalidArgumentException in Client.php line 380:\r\nPassing in the \"body\" request option as an array to send a POST request has been deprecated. Please use the \"form_params\" request option to send a application/x-www-form-urlencoded request, or a the \"multipart\" request option to send a multipart/form-data request.\r\nin Client.php line 380\r\nat Client->invalidBody() in Client.php line 118\r\nat Client->requestAsync('post', 'https://ssl.reddit.com/api/v1/access_token', array('headers' => array('Accept' => 'application/json'), 'auth' => array('id', 'secret'), 'body' => array('grant_type' => 'authorization_code', 'code' => 'code', 'redirect_uri' => 'http://localhost:5555/login'), 'synchronous' => true)) in Client.php line 130\r\nat Client->request('post', 'https://ssl.reddit.com/api/v1/access_token', array('headers' => array('Accept' => 'application/json'), 'auth' => array('id', 'secret'), 'body' => array('grant_type' => 'authorization_code', 'code' => 'code', 'redirect_uri' => 'http://localhost:5555/login'))) in Client.php line 88\r\nat Client->__call('post', array('https://ssl.reddit.com/api/v1/access_token', array('headers' => array('Accept' => 'application/json'), 'auth' => array('id', 'secret'), 'body' => array('grant_type' => 'authorization_code', 'code' => 'code', 'redirect_uri' => 'http://localhost:5555/login')))) in Provider.php line 68\r\nat Client->post('https://ssl.reddit.com/api/v1/access_token', array('headers' => array('Accept' => 'application/json'), 'auth' => array('id', 'secret'), 'body' => array('grant_type' => 'authorization_code', 'code' => 'code', 'redirect_uri' => 'http://localhost:5555/login'))) in Provider.php line 68\r\nat Provider->getAccessToken('code') in AbstractProvider.php line 180\r\n```","created_at":"2015-06-17T23:50:48Z","updated_at":"2015-06-18T14:39:12Z","closed_at":"2015-06-18T14:39:12Z","merged_at":null,"merge_commit_sha":"81de31f0a784a9b2ddc41d638d0a26724cdae9ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SocialiteProviders/Reddit/pulls/1/commits","review_comments_url":"https://api.github.com/repos/SocialiteProviders/Reddit/pulls/1/comments","review_comment_url":"https://api.github.com/repos/SocialiteProviders/Reddit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SocialiteProviders/Reddit/issues/1/comments","statuses_url":"https://api.github.com/repos/SocialiteProviders/Reddit/statuses/802d6e31b61edccb79b66371f61350c89a37f854","head":{"label":"taion809:master","ref":"master","sha":"802d6e31b61edccb79b66371f61350c89a37f854","user":{"login":"taion809","id":5170979,"avatar_url":"https://avatars.githubusercontent.com/u/5170979?v=3","gravatar_id":"","url":"https://api.github.com/users/taion809","html_url":"https://github.com/taion809","followers_url":"https://api.github.com/users/taion809/followers","following_url":"https://api.github.com/users/taion809/following{/other_user}","gists_url":"https://api.github.com/users/taion809/gists{/gist_id}","starred_url":"https://api.github.com/users/taion809/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taion809/subscriptions","organizations_url":"https://api.github.com/users/taion809/orgs","repos_url":"https://api.github.com/users/taion809/repos","events_url":"https://api.github.com/users/taion809/events{/privacy}","received_events_url":"https://api.github.com/users/taion809/received_events","type":"User","site_admin":false},"repo":{"id":37625511,"name":"Reddit","full_name":"taion809/Reddit","owner":{"login":"taion809","id":5170979,"avatar_url":"https://avatars.githubusercontent.com/u/5170979?v=3","gravatar_id":"","url":"https://api.github.com/users/taion809","html_url":"https://github.com/taion809","followers_url":"https://api.github.com/users/taion809/followers","following_url":"https://api.github.com/users/taion809/following{/other_user}","gists_url":"https://api.github.com/users/taion809/gists{/gist_id}","starred_url":"https://api.github.com/users/taion809/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taion809/subscriptions","organizations_url":"https://api.github.com/users/taion809/orgs","repos_url":"https://api.github.com/users/taion809/repos","events_url":"https://api.github.com/users/taion809/events{/privacy}","received_events_url":"https://api.github.com/users/taion809/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/taion809/Reddit","description":"Reddit OAuth2 Provider for Laravel Socialite","fork":true,"url":"https://api.github.com/repos/taion809/Reddit","forks_url":"https://api.github.com/repos/taion809/Reddit/forks","keys_url":"https://api.github.com/repos/taion809/Reddit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taion809/Reddit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taion809/Reddit/teams","hooks_url":"https://api.github.com/repos/taion809/Reddit/hooks","issue_events_url":"https://api.github.com/repos/taion809/Reddit/issues/events{/number}","events_url":"https://api.github.com/repos/taion809/Reddit/events","assignees_url":"https://api.github.com/repos/taion809/Reddit/assignees{/user}","branches_url":"https://api.github.com/repos/taion809/Reddit/branches{/branch}","tags_url":"https://api.github.com/repos/taion809/Reddit/tags","blobs_url":"https://api.github.com/repos/taion809/Reddit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taion809/Reddit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taion809/Reddit/git/refs{/sha}","trees_url":"https://api.github.com/repos/taion809/Reddit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taion809/Reddit/statuses/{sha}","languages_url":"https://api.github.com/repos/taion809/Reddit/languages","stargazers_url":"https://api.github.com/repos/taion809/Reddit/stargazers","contributors_url":"https://api.github.com/repos/taion809/Reddit/contributors","subscribers_url":"https://api.github.com/repos/taion809/Reddit/subscribers","subscription_url":"https://api.github.com/repos/taion809/Reddit/subscription","commits_url":"https://api.github.com/repos/taion809/Reddit/commits{/sha}","git_commits_url":"https://api.github.com/repos/taion809/Reddit/git/commits{/sha}","comments_url":"https://api.github.com/repos/taion809/Reddit/comments{/number}","issue_comment_url":"https://api.github.com/repos/taion809/Reddit/issues/comments{/number}","contents_url":"https://api.github.com/repos/taion809/Reddit/contents/{+path}","compare_url":"https://api.github.com/repos/taion809/Reddit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taion809/Reddit/merges","archive_url":"https://api.github.com/repos/taion809/Reddit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taion809/Reddit/downloads","issues_url":"https://api.github.com/repos/taion809/Reddit/issues{/number}","pulls_url":"https://api.github.com/repos/taion809/Reddit/pulls{/number}","milestones_url":"https://api.github.com/repos/taion809/Reddit/milestones{/number}","notifications_url":"https://api.github.com/repos/taion809/Reddit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taion809/Reddit/labels{/name}","releases_url":"https://api.github.com/repos/taion809/Reddit/releases{/id}","created_at":"2015-06-17T23:02:33Z","updated_at":"2015-06-17T23:02:34Z","pushed_at":"2015-06-18T00:39:09Z","git_url":"git://github.com/taion809/Reddit.git","ssh_url":"git@github.com:taion809/Reddit.git","clone_url":"https://github.com/taion809/Reddit.git","svn_url":"https://github.com/taion809/Reddit","homepage":null,"size":86,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"SocialiteProviders:master","ref":"master","sha":"e12c5c32dac0aee757e3c6c295aafead24b77144","user":{"login":"SocialiteProviders","id":11076093,"avatar_url":"https://avatars.githubusercontent.com/u/11076093?v=3","gravatar_id":"","url":"https://api.github.com/users/SocialiteProviders","html_url":"https://github.com/SocialiteProviders","followers_url":"https://api.github.com/users/SocialiteProviders/followers","following_url":"https://api.github.com/users/SocialiteProviders/following{/other_user}","gists_url":"https://api.github.com/users/SocialiteProviders/gists{/gist_id}","starred_url":"https://api.github.com/users/SocialiteProviders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SocialiteProviders/subscriptions","organizations_url":"https://api.github.com/users/SocialiteProviders/orgs","repos_url":"https://api.github.com/users/SocialiteProviders/repos","events_url":"https://api.github.com/users/SocialiteProviders/events{/privacy}","received_events_url":"https://api.github.com/users/SocialiteProviders/received_events","type":"Organization","site_admin":false},"repo":{"id":31084351,"name":"Reddit","full_name":"SocialiteProviders/Reddit","owner":{"login":"SocialiteProviders","id":11076093,"avatar_url":"https://avatars.githubusercontent.com/u/11076093?v=3","gravatar_id":"","url":"https://api.github.com/users/SocialiteProviders","html_url":"https://github.com/SocialiteProviders","followers_url":"https://api.github.com/users/SocialiteProviders/followers","following_url":"https://api.github.com/users/SocialiteProviders/following{/other_user}","gists_url":"https://api.github.com/users/SocialiteProviders/gists{/gist_id}","starred_url":"https://api.github.com/users/SocialiteProviders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SocialiteProviders/subscriptions","organizations_url":"https://api.github.com/users/SocialiteProviders/orgs","repos_url":"https://api.github.com/users/SocialiteProviders/repos","events_url":"https://api.github.com/users/SocialiteProviders/events{/privacy}","received_events_url":"https://api.github.com/users/SocialiteProviders/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SocialiteProviders/Reddit","description":"Reddit OAuth2 Provider for Laravel Socialite","fork":false,"url":"https://api.github.com/repos/SocialiteProviders/Reddit","forks_url":"https://api.github.com/repos/SocialiteProviders/Reddit/forks","keys_url":"https://api.github.com/repos/SocialiteProviders/Reddit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SocialiteProviders/Reddit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SocialiteProviders/Reddit/teams","hooks_url":"https://api.github.com/repos/SocialiteProviders/Reddit/hooks","issue_events_url":"https://api.github.com/repos/SocialiteProviders/Reddit/issues/events{/number}","events_url":"https://api.github.com/repos/SocialiteProviders/Reddit/events","assignees_url":"https://api.github.com/repos/SocialiteProviders/Reddit/assignees{/user}","branches_url":"https://api.github.com/repos/SocialiteProviders/Reddit/branches{/branch}","tags_url":"https://api.github.com/repos/SocialiteProviders/Reddit/tags","blobs_url":"https://api.github.com/repos/SocialiteProviders/Reddit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SocialiteProviders/Reddit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SocialiteProviders/Reddit/git/refs{/sha}","trees_url":"https://api.github.com/repos/SocialiteProviders/Reddit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SocialiteProviders/Reddit/statuses/{sha}","languages_url":"https://api.github.com/repos/SocialiteProviders/Reddit/languages","stargazers_url":"https://api.github.com/repos/SocialiteProviders/Reddit/stargazers","contributors_url":"https://api.github.com/repos/SocialiteProviders/Reddit/contributors","subscribers_url":"https://api.github.com/repos/SocialiteProviders/Reddit/subscribers","subscription_url":"https://api.github.com/repos/SocialiteProviders/Reddit/subscription","commits_url":"https://api.github.com/repos/SocialiteProviders/Reddit/commits{/sha}","git_commits_url":"https://api.github.com/repos/SocialiteProviders/Reddit/git/commits{/sha}","comments_url":"https://api.github.com/repos/SocialiteProviders/Reddit/comments{/number}","issue_comment_url":"https://api.github.com/repos/SocialiteProviders/Reddit/issues/comments{/number}","contents_url":"https://api.github.com/repos/SocialiteProviders/Reddit/contents/{+path}","compare_url":"https://api.github.com/repos/SocialiteProviders/Reddit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SocialiteProviders/Reddit/merges","archive_url":"https://api.github.com/repos/SocialiteProviders/Reddit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SocialiteProviders/Reddit/downloads","issues_url":"https://api.github.com/repos/SocialiteProviders/Reddit/issues{/number}","pulls_url":"https://api.github.com/repos/SocialiteProviders/Reddit/pulls{/number}","milestones_url":"https://api.github.com/repos/SocialiteProviders/Reddit/milestones{/number}","notifications_url":"https://api.github.com/repos/SocialiteProviders/Reddit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SocialiteProviders/Reddit/labels{/name}","releases_url":"https://api.github.com/repos/SocialiteProviders/Reddit/releases{/id}","created_at":"2015-02-20T20:43:22Z","updated_at":"2015-06-18T02:10:46Z","pushed_at":"2015-06-18T14:33:04Z","git_url":"git://github.com/SocialiteProviders/Reddit.git","ssh_url":"git@github.com:SocialiteProviders/Reddit.git","clone_url":"https://github.com/SocialiteProviders/Reddit.git","svn_url":"https://github.com/SocialiteProviders/Reddit","homepage":null,"size":156,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SocialiteProviders/Reddit/pulls/1"},"html":{"href":"https://github.com/SocialiteProviders/Reddit/pull/1"},"issue":{"href":"https://api.github.com/repos/SocialiteProviders/Reddit/issues/1"},"comments":{"href":"https://api.github.com/repos/SocialiteProviders/Reddit/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/SocialiteProviders/Reddit/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/SocialiteProviders/Reddit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SocialiteProviders/Reddit/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/SocialiteProviders/Reddit/statuses/802d6e31b61edccb79b66371f61350c89a37f854"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":5,"review_comments":0,"commits":2,"additions":4,"deletions":1,"changed_files":1}}