{"action":"opened","number":21,"pull_request":{"url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/21","id":49931202,"html_url":"https://github.com/zorkian/go-datadog-api/pull/21","diff_url":"https://github.com/zorkian/go-datadog-api/pull/21.diff","patch_url":"https://github.com/zorkian/go-datadog-api/pull/21.patch","issue_url":"https://api.github.com/repos/zorkian/go-datadog-api/issues/21","number":21,"state":"open","locked":false,"title":"Return body on error.","user":{"login":"ojongerius","id":1726055,"avatar_url":"https://avatars.githubusercontent.com/u/1726055?v=3","gravatar_id":"","url":"https://api.github.com/users/ojongerius","html_url":"https://github.com/ojongerius","followers_url":"https://api.github.com/users/ojongerius/followers","following_url":"https://api.github.com/users/ojongerius/following{/other_user}","gists_url":"https://api.github.com/users/ojongerius/gists{/gist_id}","starred_url":"https://api.github.com/users/ojongerius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojongerius/subscriptions","organizations_url":"https://api.github.com/users/ojongerius/orgs","repos_url":"https://api.github.com/users/ojongerius/repos","events_url":"https://api.github.com/users/ojongerius/events{/privacy}","received_events_url":"https://api.github.com/users/ojongerius/received_events","type":"User","site_admin":false},"body":"Which will result in:\r\n\r\n```Got error:  API error 400 Bad Request: {\"errors\":[\"The value provided for parameter 'query' is invalid\"]}``` \r\n\r\nvs the old\r\n\r\n```Got error:  API error 400```","created_at":"2015-11-06T09:20:07Z","updated_at":"2015-11-06T09:20:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/21/commits","review_comments_url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/21/comments","review_comment_url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zorkian/go-datadog-api/issues/21/comments","statuses_url":"https://api.github.com/repos/zorkian/go-datadog-api/statuses/0e045b2a63b67741707a7686d6b40348994300f1","head":{"label":"ojongerius:error_handling","ref":"error_handling","sha":"0e045b2a63b67741707a7686d6b40348994300f1","user":{"login":"ojongerius","id":1726055,"avatar_url":"https://avatars.githubusercontent.com/u/1726055?v=3","gravatar_id":"","url":"https://api.github.com/users/ojongerius","html_url":"https://github.com/ojongerius","followers_url":"https://api.github.com/users/ojongerius/followers","following_url":"https://api.github.com/users/ojongerius/following{/other_user}","gists_url":"https://api.github.com/users/ojongerius/gists{/gist_id}","starred_url":"https://api.github.com/users/ojongerius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojongerius/subscriptions","organizations_url":"https://api.github.com/users/ojongerius/orgs","repos_url":"https://api.github.com/users/ojongerius/repos","events_url":"https://api.github.com/users/ojongerius/events{/privacy}","received_events_url":"https://api.github.com/users/ojongerius/received_events","type":"User","site_admin":false},"repo":{"id":40746660,"name":"go-datadog-api","full_name":"ojongerius/go-datadog-api","owner":{"login":"ojongerius","id":1726055,"avatar_url":"https://avatars.githubusercontent.com/u/1726055?v=3","gravatar_id":"","url":"https://api.github.com/users/ojongerius","html_url":"https://github.com/ojongerius","followers_url":"https://api.github.com/users/ojongerius/followers","following_url":"https://api.github.com/users/ojongerius/following{/other_user}","gists_url":"https://api.github.com/users/ojongerius/gists{/gist_id}","starred_url":"https://api.github.com/users/ojongerius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojongerius/subscriptions","organizations_url":"https://api.github.com/users/ojongerius/orgs","repos_url":"https://api.github.com/users/ojongerius/repos","events_url":"https://api.github.com/users/ojongerius/events{/privacy}","received_events_url":"https://api.github.com/users/ojongerius/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ojongerius/go-datadog-api","description":"A Go implementation of the Datadog API.","fork":true,"url":"https://api.github.com/repos/ojongerius/go-datadog-api","forks_url":"https://api.github.com/repos/ojongerius/go-datadog-api/forks","keys_url":"https://api.github.com/repos/ojongerius/go-datadog-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ojongerius/go-datadog-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ojongerius/go-datadog-api/teams","hooks_url":"https://api.github.com/repos/ojongerius/go-datadog-api/hooks","issue_events_url":"https://api.github.com/repos/ojongerius/go-datadog-api/issues/events{/number}","events_url":"https://api.github.com/repos/ojongerius/go-datadog-api/events","assignees_url":"https://api.github.com/repos/ojongerius/go-datadog-api/assignees{/user}","branches_url":"https://api.github.com/repos/ojongerius/go-datadog-api/branches{/branch}","tags_url":"https://api.github.com/repos/ojongerius/go-datadog-api/tags","blobs_url":"https://api.github.com/repos/ojongerius/go-datadog-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ojongerius/go-datadog-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ojongerius/go-datadog-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/ojongerius/go-datadog-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ojongerius/go-datadog-api/statuses/{sha}","languages_url":"https://api.github.com/repos/ojongerius/go-datadog-api/languages","stargazers_url":"https://api.github.com/repos/ojongerius/go-datadog-api/stargazers","contributors_url":"https://api.github.com/repos/ojongerius/go-datadog-api/contributors","subscribers_url":"https://api.github.com/repos/ojongerius/go-datadog-api/subscribers","subscription_url":"https://api.github.com/repos/ojongerius/go-datadog-api/subscription","commits_url":"https://api.github.com/repos/ojongerius/go-datadog-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/ojongerius/go-datadog-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/ojongerius/go-datadog-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/ojongerius/go-datadog-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/ojongerius/go-datadog-api/contents/{+path}","compare_url":"https://api.github.com/repos/ojongerius/go-datadog-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ojongerius/go-datadog-api/merges","archive_url":"https://api.github.com/repos/ojongerius/go-datadog-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ojongerius/go-datadog-api/downloads","issues_url":"https://api.github.com/repos/ojongerius/go-datadog-api/issues{/number}","pulls_url":"https://api.github.com/repos/ojongerius/go-datadog-api/pulls{/number}","milestones_url":"https://api.github.com/repos/ojongerius/go-datadog-api/milestones{/number}","notifications_url":"https://api.github.com/repos/ojongerius/go-datadog-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ojongerius/go-datadog-api/labels{/name}","releases_url":"https://api.github.com/repos/ojongerius/go-datadog-api/releases{/id}","created_at":"2015-08-15T04:31:48Z","updated_at":"2015-08-15T04:31:50Z","pushed_at":"2015-11-06T09:18:28Z","git_url":"git://github.com/ojongerius/go-datadog-api.git","ssh_url":"git@github.com:ojongerius/go-datadog-api.git","clone_url":"https://github.com/ojongerius/go-datadog-api.git","svn_url":"https://github.com/ojongerius/go-datadog-api","homepage":null,"size":198,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"zorkian:master","ref":"master","sha":"c04bc04d9ba57e89f5a6c133f70846709c739f42","user":{"login":"zorkian","id":361428,"avatar_url":"https://avatars.githubusercontent.com/u/361428?v=3","gravatar_id":"","url":"https://api.github.com/users/zorkian","html_url":"https://github.com/zorkian","followers_url":"https://api.github.com/users/zorkian/followers","following_url":"https://api.github.com/users/zorkian/following{/other_user}","gists_url":"https://api.github.com/users/zorkian/gists{/gist_id}","starred_url":"https://api.github.com/users/zorkian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorkian/subscriptions","organizations_url":"https://api.github.com/users/zorkian/orgs","repos_url":"https://api.github.com/users/zorkian/repos","events_url":"https://api.github.com/users/zorkian/events{/privacy}","received_events_url":"https://api.github.com/users/zorkian/received_events","type":"User","site_admin":false},"repo":{"id":12013137,"name":"go-datadog-api","full_name":"zorkian/go-datadog-api","owner":{"login":"zorkian","id":361428,"avatar_url":"https://avatars.githubusercontent.com/u/361428?v=3","gravatar_id":"","url":"https://api.github.com/users/zorkian","html_url":"https://github.com/zorkian","followers_url":"https://api.github.com/users/zorkian/followers","following_url":"https://api.github.com/users/zorkian/following{/other_user}","gists_url":"https://api.github.com/users/zorkian/gists{/gist_id}","starred_url":"https://api.github.com/users/zorkian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorkian/subscriptions","organizations_url":"https://api.github.com/users/zorkian/orgs","repos_url":"https://api.github.com/users/zorkian/repos","events_url":"https://api.github.com/users/zorkian/events{/privacy}","received_events_url":"https://api.github.com/users/zorkian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zorkian/go-datadog-api","description":"A Go implementation of the Datadog API.","fork":false,"url":"https://api.github.com/repos/zorkian/go-datadog-api","forks_url":"https://api.github.com/repos/zorkian/go-datadog-api/forks","keys_url":"https://api.github.com/repos/zorkian/go-datadog-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zorkian/go-datadog-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zorkian/go-datadog-api/teams","hooks_url":"https://api.github.com/repos/zorkian/go-datadog-api/hooks","issue_events_url":"https://api.github.com/repos/zorkian/go-datadog-api/issues/events{/number}","events_url":"https://api.github.com/repos/zorkian/go-datadog-api/events","assignees_url":"https://api.github.com/repos/zorkian/go-datadog-api/assignees{/user}","branches_url":"https://api.github.com/repos/zorkian/go-datadog-api/branches{/branch}","tags_url":"https://api.github.com/repos/zorkian/go-datadog-api/tags","blobs_url":"https://api.github.com/repos/zorkian/go-datadog-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zorkian/go-datadog-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zorkian/go-datadog-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/zorkian/go-datadog-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zorkian/go-datadog-api/statuses/{sha}","languages_url":"https://api.github.com/repos/zorkian/go-datadog-api/languages","stargazers_url":"https://api.github.com/repos/zorkian/go-datadog-api/stargazers","contributors_url":"https://api.github.com/repos/zorkian/go-datadog-api/contributors","subscribers_url":"https://api.github.com/repos/zorkian/go-datadog-api/subscribers","subscription_url":"https://api.github.com/repos/zorkian/go-datadog-api/subscription","commits_url":"https://api.github.com/repos/zorkian/go-datadog-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/zorkian/go-datadog-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/zorkian/go-datadog-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/zorkian/go-datadog-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/zorkian/go-datadog-api/contents/{+path}","compare_url":"https://api.github.com/repos/zorkian/go-datadog-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zorkian/go-datadog-api/merges","archive_url":"https://api.github.com/repos/zorkian/go-datadog-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zorkian/go-datadog-api/downloads","issues_url":"https://api.github.com/repos/zorkian/go-datadog-api/issues{/number}","pulls_url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls{/number}","milestones_url":"https://api.github.com/repos/zorkian/go-datadog-api/milestones{/number}","notifications_url":"https://api.github.com/repos/zorkian/go-datadog-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zorkian/go-datadog-api/labels{/name}","releases_url":"https://api.github.com/repos/zorkian/go-datadog-api/releases{/id}","created_at":"2013-08-10T00:17:55Z","updated_at":"2015-11-05T23:54:52Z","pushed_at":"2015-11-06T00:34:13Z","git_url":"git://github.com/zorkian/go-datadog-api.git","ssh_url":"git@github.com:zorkian/go-datadog-api.git","clone_url":"https://github.com/zorkian/go-datadog-api.git","svn_url":"https://github.com/zorkian/go-datadog-api","homepage":null,"size":325,"stargazers_count":28,"watchers_count":28,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":1,"forks":15,"open_issues":1,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/21"},"html":{"href":"https://github.com/zorkian/go-datadog-api/pull/21"},"issue":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/issues/21"},"comments":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/statuses/0e045b2a63b67741707a7686d6b40348994300f1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":1,"changed_files":1}}