{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/geelweb/Litmus/pulls/4","id":48767018,"html_url":"https://github.com/geelweb/Litmus/pull/4","diff_url":"https://github.com/geelweb/Litmus/pull/4.diff","patch_url":"https://github.com/geelweb/Litmus/pull/4.patch","issue_url":"https://api.github.com/repos/geelweb/Litmus/issues/4","number":4,"state":"closed","locked":false,"title":"Define CURLOPT_POSTFIELDS with empty array if no post data","user":{"login":"Natronick","id":5037466,"avatar_url":"https://avatars.githubusercontent.com/u/5037466?v=3","gravatar_id":"","url":"https://api.github.com/users/Natronick","html_url":"https://github.com/Natronick","followers_url":"https://api.github.com/users/Natronick/followers","following_url":"https://api.github.com/users/Natronick/following{/other_user}","gists_url":"https://api.github.com/users/Natronick/gists{/gist_id}","starred_url":"https://api.github.com/users/Natronick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natronick/subscriptions","organizations_url":"https://api.github.com/users/Natronick/orgs","repos_url":"https://api.github.com/users/Natronick/repos","events_url":"https://api.github.com/users/Natronick/events{/privacy}","received_events_url":"https://api.github.com/users/Natronick/received_events","type":"User","site_admin":false},"body":"To avoid 400 code response from Litmus API, always define CURLOPT_POSTFIELDS curl option for post requests. If the $request parameter is null set it to empty array. ","created_at":"2015-10-26T17:00:50Z","updated_at":"2015-10-26T20:25:45Z","closed_at":"2015-10-26T20:25:45Z","merged_at":"2015-10-26T20:25:45Z","merge_commit_sha":"d925a1657e81268bfdb1147771bc8c60d535682d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/geelweb/Litmus/pulls/4/commits","review_comments_url":"https://api.github.com/repos/geelweb/Litmus/pulls/4/comments","review_comment_url":"https://api.github.com/repos/geelweb/Litmus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geelweb/Litmus/issues/4/comments","statuses_url":"https://api.github.com/repos/geelweb/Litmus/statuses/0a5337ea225fa22c9788e0a19c320c96fc7117bb","head":{"label":"Natronick:master","ref":"master","sha":"0a5337ea225fa22c9788e0a19c320c96fc7117bb","user":{"login":"Natronick","id":5037466,"avatar_url":"https://avatars.githubusercontent.com/u/5037466?v=3","gravatar_id":"","url":"https://api.github.com/users/Natronick","html_url":"https://github.com/Natronick","followers_url":"https://api.github.com/users/Natronick/followers","following_url":"https://api.github.com/users/Natronick/following{/other_user}","gists_url":"https://api.github.com/users/Natronick/gists{/gist_id}","starred_url":"https://api.github.com/users/Natronick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natronick/subscriptions","organizations_url":"https://api.github.com/users/Natronick/orgs","repos_url":"https://api.github.com/users/Natronick/repos","events_url":"https://api.github.com/users/Natronick/events{/privacy}","received_events_url":"https://api.github.com/users/Natronick/received_events","type":"User","site_admin":false},"repo":{"id":44982481,"name":"Litmus","full_name":"Natronick/Litmus","owner":{"login":"Natronick","id":5037466,"avatar_url":"https://avatars.githubusercontent.com/u/5037466?v=3","gravatar_id":"","url":"https://api.github.com/users/Natronick","html_url":"https://github.com/Natronick","followers_url":"https://api.github.com/users/Natronick/followers","following_url":"https://api.github.com/users/Natronick/following{/other_user}","gists_url":"https://api.github.com/users/Natronick/gists{/gist_id}","starred_url":"https://api.github.com/users/Natronick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natronick/subscriptions","organizations_url":"https://api.github.com/users/Natronick/orgs","repos_url":"https://api.github.com/users/Natronick/repos","events_url":"https://api.github.com/users/Natronick/events{/privacy}","received_events_url":"https://api.github.com/users/Natronick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Natronick/Litmus","description":"PHP Implementation of the Litmus customer RESTful API","fork":true,"url":"https://api.github.com/repos/Natronick/Litmus","forks_url":"https://api.github.com/repos/Natronick/Litmus/forks","keys_url":"https://api.github.com/repos/Natronick/Litmus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Natronick/Litmus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Natronick/Litmus/teams","hooks_url":"https://api.github.com/repos/Natronick/Litmus/hooks","issue_events_url":"https://api.github.com/repos/Natronick/Litmus/issues/events{/number}","events_url":"https://api.github.com/repos/Natronick/Litmus/events","assignees_url":"https://api.github.com/repos/Natronick/Litmus/assignees{/user}","branches_url":"https://api.github.com/repos/Natronick/Litmus/branches{/branch}","tags_url":"https://api.github.com/repos/Natronick/Litmus/tags","blobs_url":"https://api.github.com/repos/Natronick/Litmus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Natronick/Litmus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Natronick/Litmus/git/refs{/sha}","trees_url":"https://api.github.com/repos/Natronick/Litmus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Natronick/Litmus/statuses/{sha}","languages_url":"https://api.github.com/repos/Natronick/Litmus/languages","stargazers_url":"https://api.github.com/repos/Natronick/Litmus/stargazers","contributors_url":"https://api.github.com/repos/Natronick/Litmus/contributors","subscribers_url":"https://api.github.com/repos/Natronick/Litmus/subscribers","subscription_url":"https://api.github.com/repos/Natronick/Litmus/subscription","commits_url":"https://api.github.com/repos/Natronick/Litmus/commits{/sha}","git_commits_url":"https://api.github.com/repos/Natronick/Litmus/git/commits{/sha}","comments_url":"https://api.github.com/repos/Natronick/Litmus/comments{/number}","issue_comment_url":"https://api.github.com/repos/Natronick/Litmus/issues/comments{/number}","contents_url":"https://api.github.com/repos/Natronick/Litmus/contents/{+path}","compare_url":"https://api.github.com/repos/Natronick/Litmus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Natronick/Litmus/merges","archive_url":"https://api.github.com/repos/Natronick/Litmus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Natronick/Litmus/downloads","issues_url":"https://api.github.com/repos/Natronick/Litmus/issues{/number}","pulls_url":"https://api.github.com/repos/Natronick/Litmus/pulls{/number}","milestones_url":"https://api.github.com/repos/Natronick/Litmus/milestones{/number}","notifications_url":"https://api.github.com/repos/Natronick/Litmus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Natronick/Litmus/labels{/name}","releases_url":"https://api.github.com/repos/Natronick/Litmus/releases{/id}","created_at":"2015-10-26T16:40:35Z","updated_at":"2015-10-26T16:40:36Z","pushed_at":"2015-10-26T16:56:09Z","git_url":"git://github.com/Natronick/Litmus.git","ssh_url":"git@github.com:Natronick/Litmus.git","clone_url":"https://github.com/Natronick/Litmus.git","svn_url":"https://github.com/Natronick/Litmus","homepage":"","size":134,"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":"geelweb:master","ref":"master","sha":"672d9697c65d2f6cbf360e7ffea5ea1f899f3dda","user":{"login":"geelweb","id":65830,"avatar_url":"https://avatars.githubusercontent.com/u/65830?v=3","gravatar_id":"","url":"https://api.github.com/users/geelweb","html_url":"https://github.com/geelweb","followers_url":"https://api.github.com/users/geelweb/followers","following_url":"https://api.github.com/users/geelweb/following{/other_user}","gists_url":"https://api.github.com/users/geelweb/gists{/gist_id}","starred_url":"https://api.github.com/users/geelweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geelweb/subscriptions","organizations_url":"https://api.github.com/users/geelweb/orgs","repos_url":"https://api.github.com/users/geelweb/repos","events_url":"https://api.github.com/users/geelweb/events{/privacy}","received_events_url":"https://api.github.com/users/geelweb/received_events","type":"User","site_admin":false},"repo":{"id":527160,"name":"Litmus","full_name":"geelweb/Litmus","owner":{"login":"geelweb","id":65830,"avatar_url":"https://avatars.githubusercontent.com/u/65830?v=3","gravatar_id":"","url":"https://api.github.com/users/geelweb","html_url":"https://github.com/geelweb","followers_url":"https://api.github.com/users/geelweb/followers","following_url":"https://api.github.com/users/geelweb/following{/other_user}","gists_url":"https://api.github.com/users/geelweb/gists{/gist_id}","starred_url":"https://api.github.com/users/geelweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geelweb/subscriptions","organizations_url":"https://api.github.com/users/geelweb/orgs","repos_url":"https://api.github.com/users/geelweb/repos","events_url":"https://api.github.com/users/geelweb/events{/privacy}","received_events_url":"https://api.github.com/users/geelweb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geelweb/Litmus","description":"PHP Implementation of the Litmus customer RESTful API","fork":false,"url":"https://api.github.com/repos/geelweb/Litmus","forks_url":"https://api.github.com/repos/geelweb/Litmus/forks","keys_url":"https://api.github.com/repos/geelweb/Litmus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geelweb/Litmus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geelweb/Litmus/teams","hooks_url":"https://api.github.com/repos/geelweb/Litmus/hooks","issue_events_url":"https://api.github.com/repos/geelweb/Litmus/issues/events{/number}","events_url":"https://api.github.com/repos/geelweb/Litmus/events","assignees_url":"https://api.github.com/repos/geelweb/Litmus/assignees{/user}","branches_url":"https://api.github.com/repos/geelweb/Litmus/branches{/branch}","tags_url":"https://api.github.com/repos/geelweb/Litmus/tags","blobs_url":"https://api.github.com/repos/geelweb/Litmus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geelweb/Litmus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geelweb/Litmus/git/refs{/sha}","trees_url":"https://api.github.com/repos/geelweb/Litmus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geelweb/Litmus/statuses/{sha}","languages_url":"https://api.github.com/repos/geelweb/Litmus/languages","stargazers_url":"https://api.github.com/repos/geelweb/Litmus/stargazers","contributors_url":"https://api.github.com/repos/geelweb/Litmus/contributors","subscribers_url":"https://api.github.com/repos/geelweb/Litmus/subscribers","subscription_url":"https://api.github.com/repos/geelweb/Litmus/subscription","commits_url":"https://api.github.com/repos/geelweb/Litmus/commits{/sha}","git_commits_url":"https://api.github.com/repos/geelweb/Litmus/git/commits{/sha}","comments_url":"https://api.github.com/repos/geelweb/Litmus/comments{/number}","issue_comment_url":"https://api.github.com/repos/geelweb/Litmus/issues/comments{/number}","contents_url":"https://api.github.com/repos/geelweb/Litmus/contents/{+path}","compare_url":"https://api.github.com/repos/geelweb/Litmus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geelweb/Litmus/merges","archive_url":"https://api.github.com/repos/geelweb/Litmus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geelweb/Litmus/downloads","issues_url":"https://api.github.com/repos/geelweb/Litmus/issues{/number}","pulls_url":"https://api.github.com/repos/geelweb/Litmus/pulls{/number}","milestones_url":"https://api.github.com/repos/geelweb/Litmus/milestones{/number}","notifications_url":"https://api.github.com/repos/geelweb/Litmus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geelweb/Litmus/labels{/name}","releases_url":"https://api.github.com/repos/geelweb/Litmus/releases{/id}","created_at":"2010-02-20T06:33:20Z","updated_at":"2014-06-05T07:53:07Z","pushed_at":"2015-10-26T20:25:45Z","git_url":"git://github.com/geelweb/Litmus.git","ssh_url":"git@github.com:geelweb/Litmus.git","clone_url":"https://github.com/geelweb/Litmus.git","svn_url":"https://github.com/geelweb/Litmus","homepage":"","size":394,"stargazers_count":8,"watchers_count":8,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/geelweb/Litmus/pulls/4"},"html":{"href":"https://github.com/geelweb/Litmus/pull/4"},"issue":{"href":"https://api.github.com/repos/geelweb/Litmus/issues/4"},"comments":{"href":"https://api.github.com/repos/geelweb/Litmus/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/geelweb/Litmus/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/geelweb/Litmus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geelweb/Litmus/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/geelweb/Litmus/statuses/0a5337ea225fa22c9788e0a19c320c96fc7117bb"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"geelweb","id":65830,"avatar_url":"https://avatars.githubusercontent.com/u/65830?v=3","gravatar_id":"","url":"https://api.github.com/users/geelweb","html_url":"https://github.com/geelweb","followers_url":"https://api.github.com/users/geelweb/followers","following_url":"https://api.github.com/users/geelweb/following{/other_user}","gists_url":"https://api.github.com/users/geelweb/gists{/gist_id}","starred_url":"https://api.github.com/users/geelweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geelweb/subscriptions","organizations_url":"https://api.github.com/users/geelweb/orgs","repos_url":"https://api.github.com/users/geelweb/repos","events_url":"https://api.github.com/users/geelweb/events{/privacy}","received_events_url":"https://api.github.com/users/geelweb/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":2,"changed_files":1}}