{"action":"created","comment":{"url":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/comments/62438668","id":62438668,"diff_hunk":"@@ -116,12 +116,17 @@ func (api *API) makeRequest(method, uri string, params interface{}) ([]byte, err\n \treturn resBody, nil\n }\n \n+type ResponseInfo struct {\n+\tCode    int    `json:\"code\"`\n+\tMessage string `json:\"message\"`\n+}\n+\n // Response is a template.  There will also be a result struct.  There will be a\n // unique response type for each response, which will include this type.\n type Response struct {\n-\tSuccess  bool     `json:\"success\"`\n-\tErrors   []string `json:\"errors\"`\n-\tMessages []string `json:\"messages\"`\n+\tSuccess  bool           `json:\"success\"`\n+\tErrors   []ResponseInfo `json:\"errors\"`\n+\tMessages []ResponseInfo `json:\"messages\"`","path":"cloudflare.go","position":17,"original_position":17,"commit_id":"4d2f239014e82fb775de1a8ee4d9f2b760f46ef2","original_commit_id":"4d2f239014e82fb775de1a8ee4d9f2b760f46ef2","user":{"login":"jamesog","id":982184,"avatar_url":"https://avatars.githubusercontent.com/u/982184?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesog","html_url":"https://github.com/jamesog","followers_url":"https://api.github.com/users/jamesog/followers","following_url":"https://api.github.com/users/jamesog/following{/other_user}","gists_url":"https://api.github.com/users/jamesog/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesog/subscriptions","organizations_url":"https://api.github.com/users/jamesog/orgs","repos_url":"https://api.github.com/users/jamesog/repos","events_url":"https://api.github.com/users/jamesog/events{/privacy}","received_events_url":"https://api.github.com/users/jamesog/received_events","type":"User","site_admin":false},"body":"`messages` and `errors` seem to be the same.","created_at":"2016-05-08T21:21:40Z","updated_at":"2016-05-08T21:21:40Z","html_url":"https://github.com/cloudflare/cloudflare-go/pull/65#discussion_r62438668","pull_request_url":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/comments/62438668"},"html":{"href":"https://github.com/cloudflare/cloudflare-go/pull/65#discussion_r62438668"},"pull_request":{"href":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/65","id":69266722,"html_url":"https://github.com/cloudflare/cloudflare-go/pull/65","diff_url":"https://github.com/cloudflare/cloudflare-go/pull/65.diff","patch_url":"https://github.com/cloudflare/cloudflare-go/pull/65.patch","issue_url":"https://api.github.com/repos/cloudflare/cloudflare-go/issues/65","number":65,"state":"open","locked":false,"title":"#37 #38 implement most Zone and all Zone Plan endpoints","user":{"login":"jamesog","id":982184,"avatar_url":"https://avatars.githubusercontent.com/u/982184?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesog","html_url":"https://github.com/jamesog","followers_url":"https://api.github.com/users/jamesog/followers","following_url":"https://api.github.com/users/jamesog/following{/other_user}","gists_url":"https://api.github.com/users/jamesog/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesog/subscriptions","organizations_url":"https://api.github.com/users/jamesog/orgs","repos_url":"https://api.github.com/users/jamesog/repos","events_url":"https://api.github.com/users/jamesog/events{/privacy}","received_events_url":"https://api.github.com/users/jamesog/received_events","type":"User","site_admin":false},"body":"As mentioned in #37 I haven't added CreateZone or EditZone yet, but wanted to put the rest up for review.","created_at":"2016-05-08T11:29:27Z","updated_at":"2016-05-08T21:21:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1721eb8d3b747c4e210ef45b713e566c7801f9a9","assignee":{"login":"jamesog","id":982184,"avatar_url":"https://avatars.githubusercontent.com/u/982184?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesog","html_url":"https://github.com/jamesog","followers_url":"https://api.github.com/users/jamesog/followers","following_url":"https://api.github.com/users/jamesog/following{/other_user}","gists_url":"https://api.github.com/users/jamesog/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesog/subscriptions","organizations_url":"https://api.github.com/users/jamesog/orgs","repos_url":"https://api.github.com/users/jamesog/repos","events_url":"https://api.github.com/users/jamesog/events{/privacy}","received_events_url":"https://api.github.com/users/jamesog/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/65/commits","review_comments_url":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/65/comments","review_comment_url":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudflare/cloudflare-go/issues/65/comments","statuses_url":"https://api.github.com/repos/cloudflare/cloudflare-go/statuses/4d2f239014e82fb775de1a8ee4d9f2b760f46ef2","head":{"label":"cloudflare:jamesog/37-38-zone","ref":"jamesog/37-38-zone","sha":"4d2f239014e82fb775de1a8ee4d9f2b760f46ef2","user":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"repo":{"id":47340306,"name":"cloudflare-go","full_name":"cloudflare/cloudflare-go","owner":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudflare/cloudflare-go","description":"Go library for the CloudFlare v4 API","fork":false,"url":"https://api.github.com/repos/cloudflare/cloudflare-go","forks_url":"https://api.github.com/repos/cloudflare/cloudflare-go/forks","keys_url":"https://api.github.com/repos/cloudflare/cloudflare-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudflare/cloudflare-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudflare/cloudflare-go/teams","hooks_url":"https://api.github.com/repos/cloudflare/cloudflare-go/hooks","issue_events_url":"https://api.github.com/repos/cloudflare/cloudflare-go/issues/events{/number}","events_url":"https://api.github.com/repos/cloudflare/cloudflare-go/events","assignees_url":"https://api.github.com/repos/cloudflare/cloudflare-go/assignees{/user}","branches_url":"https://api.github.com/repos/cloudflare/cloudflare-go/branches{/branch}","tags_url":"https://api.github.com/repos/cloudflare/cloudflare-go/tags","blobs_url":"https://api.github.com/repos/cloudflare/cloudflare-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudflare/cloudflare-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudflare/cloudflare-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudflare/cloudflare-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudflare/cloudflare-go/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudflare/cloudflare-go/languages","stargazers_url":"https://api.github.com/repos/cloudflare/cloudflare-go/stargazers","contributors_url":"https://api.github.com/repos/cloudflare/cloudflare-go/contributors","subscribers_url":"https://api.github.com/repos/cloudflare/cloudflare-go/subscribers","subscription_url":"https://api.github.com/repos/cloudflare/cloudflare-go/subscription","commits_url":"https://api.github.com/repos/cloudflare/cloudflare-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudflare/cloudflare-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudflare/cloudflare-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudflare/cloudflare-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudflare/cloudflare-go/contents/{+path}","compare_url":"https://api.github.com/repos/cloudflare/cloudflare-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudflare/cloudflare-go/merges","archive_url":"https://api.github.com/repos/cloudflare/cloudflare-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudflare/cloudflare-go/downloads","issues_url":"https://api.github.com/repos/cloudflare/cloudflare-go/issues{/number}","pulls_url":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudflare/cloudflare-go/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudflare/cloudflare-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudflare/cloudflare-go/labels{/name}","releases_url":"https://api.github.com/repos/cloudflare/cloudflare-go/releases{/id}","deployments_url":"https://api.github.com/repos/cloudflare/cloudflare-go/deployments","created_at":"2015-12-03T15:21:49Z","updated_at":"2016-05-07T00:26:07Z","pushed_at":"2016-05-08T11:29:27Z","git_url":"git://github.com/cloudflare/cloudflare-go.git","ssh_url":"git@github.com:cloudflare/cloudflare-go.git","clone_url":"https://github.com/cloudflare/cloudflare-go.git","svn_url":"https://github.com/cloudflare/cloudflare-go","homepage":null,"size":2847,"stargazers_count":24,"watchers_count":24,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":34,"forks":8,"open_issues":34,"watchers":24,"default_branch":"master"}},"base":{"label":"cloudflare:master","ref":"master","sha":"f66cfc45bb745ee83e45af621b1e196371637569","user":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"repo":{"id":47340306,"name":"cloudflare-go","full_name":"cloudflare/cloudflare-go","owner":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudflare/cloudflare-go","description":"Go library for the CloudFlare v4 API","fork":false,"url":"https://api.github.com/repos/cloudflare/cloudflare-go","forks_url":"https://api.github.com/repos/cloudflare/cloudflare-go/forks","keys_url":"https://api.github.com/repos/cloudflare/cloudflare-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudflare/cloudflare-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudflare/cloudflare-go/teams","hooks_url":"https://api.github.com/repos/cloudflare/cloudflare-go/hooks","issue_events_url":"https://api.github.com/repos/cloudflare/cloudflare-go/issues/events{/number}","events_url":"https://api.github.com/repos/cloudflare/cloudflare-go/events","assignees_url":"https://api.github.com/repos/cloudflare/cloudflare-go/assignees{/user}","branches_url":"https://api.github.com/repos/cloudflare/cloudflare-go/branches{/branch}","tags_url":"https://api.github.com/repos/cloudflare/cloudflare-go/tags","blobs_url":"https://api.github.com/repos/cloudflare/cloudflare-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudflare/cloudflare-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudflare/cloudflare-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudflare/cloudflare-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudflare/cloudflare-go/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudflare/cloudflare-go/languages","stargazers_url":"https://api.github.com/repos/cloudflare/cloudflare-go/stargazers","contributors_url":"https://api.github.com/repos/cloudflare/cloudflare-go/contributors","subscribers_url":"https://api.github.com/repos/cloudflare/cloudflare-go/subscribers","subscription_url":"https://api.github.com/repos/cloudflare/cloudflare-go/subscription","commits_url":"https://api.github.com/repos/cloudflare/cloudflare-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudflare/cloudflare-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudflare/cloudflare-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudflare/cloudflare-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudflare/cloudflare-go/contents/{+path}","compare_url":"https://api.github.com/repos/cloudflare/cloudflare-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudflare/cloudflare-go/merges","archive_url":"https://api.github.com/repos/cloudflare/cloudflare-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudflare/cloudflare-go/downloads","issues_url":"https://api.github.com/repos/cloudflare/cloudflare-go/issues{/number}","pulls_url":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudflare/cloudflare-go/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudflare/cloudflare-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudflare/cloudflare-go/labels{/name}","releases_url":"https://api.github.com/repos/cloudflare/cloudflare-go/releases{/id}","deployments_url":"https://api.github.com/repos/cloudflare/cloudflare-go/deployments","created_at":"2015-12-03T15:21:49Z","updated_at":"2016-05-07T00:26:07Z","pushed_at":"2016-05-08T11:29:27Z","git_url":"git://github.com/cloudflare/cloudflare-go.git","ssh_url":"git@github.com:cloudflare/cloudflare-go.git","clone_url":"https://github.com/cloudflare/cloudflare-go.git","svn_url":"https://github.com/cloudflare/cloudflare-go","homepage":null,"size":2847,"stargazers_count":24,"watchers_count":24,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":34,"forks":8,"open_issues":34,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/65"},"html":{"href":"https://github.com/cloudflare/cloudflare-go/pull/65"},"issue":{"href":"https://api.github.com/repos/cloudflare/cloudflare-go/issues/65"},"comments":{"href":"https://api.github.com/repos/cloudflare/cloudflare-go/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudflare/cloudflare-go/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/cloudflare/cloudflare-go/statuses/4d2f239014e82fb775de1a8ee4d9f2b760f46ef2"}}}}