{"action":"closed","number":12,"pull_request":{"url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/pulls/12","id":63685261,"html_url":"https://github.com/mailjet/mailjet-apiv3-go/pull/12","diff_url":"https://github.com/mailjet/mailjet-apiv3-go/pull/12.diff","patch_url":"https://github.com/mailjet/mailjet-apiv3-go/pull/12.patch","issue_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/12","number":12,"state":"closed","locked":false,"title":"Add SenderValidate resource","user":{"login":"pminten","id":4168875,"avatar_url":"https://avatars.githubusercontent.com/u/4168875?v=3","gravatar_id":"","url":"https://api.github.com/users/pminten","html_url":"https://github.com/pminten","followers_url":"https://api.github.com/users/pminten/followers","following_url":"https://api.github.com/users/pminten/following{/other_user}","gists_url":"https://api.github.com/users/pminten/gists{/gist_id}","starred_url":"https://api.github.com/users/pminten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pminten/subscriptions","organizations_url":"https://api.github.com/users/pminten/orgs","repos_url":"https://api.github.com/users/pminten/repos","events_url":"https://api.github.com/users/pminten/events{/privacy}","received_events_url":"https://api.github.com/users/pminten/received_events","type":"User","site_admin":false},"body":"This is based on the result described in\r\nhttp://dev.mailjet.com/email-api/v3/sender-validate/ and\r\nhttp://dev.mailjet.com/guides/#validate-sender-and-domain\r\n\r\nWhile the resulting struct I've seen so far always contains only two specific keys for \"Errors\", namely \"DNSValidationError\" and \"FileValidationError\" there is no guarantee in the guide or in the API docs that these are the only allowed values and the API docs only say Errors is of type JSONObject. So I went for a relatively conservative approach: map[string]string. If this is not desirable please let me know and I'll change it to a proper struct.","created_at":"2016-03-22T08:39:19Z","updated_at":"2016-03-22T09:46:02Z","closed_at":"2016-03-22T09:46:02Z","merged_at":"2016-03-22T09:46:02Z","merge_commit_sha":"c6d214184d2d7b539e20bd07eaa8cdacfde06bbe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/pulls/12/commits","review_comments_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/pulls/12/comments","review_comment_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/12/comments","statuses_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/statuses/1841653ed3024a16ed5aa9e1918bf0ddae5b7fa5","head":{"label":"pminten:add-sender-validate","ref":"add-sender-validate","sha":"1841653ed3024a16ed5aa9e1918bf0ddae5b7fa5","user":{"login":"pminten","id":4168875,"avatar_url":"https://avatars.githubusercontent.com/u/4168875?v=3","gravatar_id":"","url":"https://api.github.com/users/pminten","html_url":"https://github.com/pminten","followers_url":"https://api.github.com/users/pminten/followers","following_url":"https://api.github.com/users/pminten/following{/other_user}","gists_url":"https://api.github.com/users/pminten/gists{/gist_id}","starred_url":"https://api.github.com/users/pminten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pminten/subscriptions","organizations_url":"https://api.github.com/users/pminten/orgs","repos_url":"https://api.github.com/users/pminten/repos","events_url":"https://api.github.com/users/pminten/events{/privacy}","received_events_url":"https://api.github.com/users/pminten/received_events","type":"User","site_admin":false},"repo":{"id":54188599,"name":"mailjet-apiv3-go","full_name":"pminten/mailjet-apiv3-go","owner":{"login":"pminten","id":4168875,"avatar_url":"https://avatars.githubusercontent.com/u/4168875?v=3","gravatar_id":"","url":"https://api.github.com/users/pminten","html_url":"https://github.com/pminten","followers_url":"https://api.github.com/users/pminten/followers","following_url":"https://api.github.com/users/pminten/following{/other_user}","gists_url":"https://api.github.com/users/pminten/gists{/gist_id}","starred_url":"https://api.github.com/users/pminten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pminten/subscriptions","organizations_url":"https://api.github.com/users/pminten/orgs","repos_url":"https://api.github.com/users/pminten/repos","events_url":"https://api.github.com/users/pminten/events{/privacy}","received_events_url":"https://api.github.com/users/pminten/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pminten/mailjet-apiv3-go","description":"[API v3] Official Mailjet API v3 Go wrapper","fork":true,"url":"https://api.github.com/repos/pminten/mailjet-apiv3-go","forks_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/forks","keys_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/teams","hooks_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/hooks","issue_events_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/issues/events{/number}","events_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/events","assignees_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/assignees{/user}","branches_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/branches{/branch}","tags_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/tags","blobs_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/statuses/{sha}","languages_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/languages","stargazers_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/stargazers","contributors_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/contributors","subscribers_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/subscribers","subscription_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/subscription","commits_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/contents/{+path}","compare_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/merges","archive_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/downloads","issues_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/issues{/number}","pulls_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/pulls{/number}","milestones_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/milestones{/number}","notifications_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/labels{/name}","releases_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/releases{/id}","deployments_url":"https://api.github.com/repos/pminten/mailjet-apiv3-go/deployments","created_at":"2016-03-18T09:11:46Z","updated_at":"2016-03-18T09:11:47Z","pushed_at":"2016-03-22T08:34:12Z","git_url":"git://github.com/pminten/mailjet-apiv3-go.git","ssh_url":"git@github.com:pminten/mailjet-apiv3-go.git","clone_url":"https://github.com/pminten/mailjet-apiv3-go.git","svn_url":"https://github.com/pminten/mailjet-apiv3-go","homepage":"https://dev.mailjet.com","size":40,"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":"mailjet:master","ref":"master","sha":"028fdad71b40d0e122820da0cffbc3cdfdfe8d72","user":{"login":"mailjet","id":1148168,"avatar_url":"https://avatars.githubusercontent.com/u/1148168?v=3","gravatar_id":"","url":"https://api.github.com/users/mailjet","html_url":"https://github.com/mailjet","followers_url":"https://api.github.com/users/mailjet/followers","following_url":"https://api.github.com/users/mailjet/following{/other_user}","gists_url":"https://api.github.com/users/mailjet/gists{/gist_id}","starred_url":"https://api.github.com/users/mailjet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mailjet/subscriptions","organizations_url":"https://api.github.com/users/mailjet/orgs","repos_url":"https://api.github.com/users/mailjet/repos","events_url":"https://api.github.com/users/mailjet/events{/privacy}","received_events_url":"https://api.github.com/users/mailjet/received_events","type":"Organization","site_admin":false},"repo":{"id":44368907,"name":"mailjet-apiv3-go","full_name":"mailjet/mailjet-apiv3-go","owner":{"login":"mailjet","id":1148168,"avatar_url":"https://avatars.githubusercontent.com/u/1148168?v=3","gravatar_id":"","url":"https://api.github.com/users/mailjet","html_url":"https://github.com/mailjet","followers_url":"https://api.github.com/users/mailjet/followers","following_url":"https://api.github.com/users/mailjet/following{/other_user}","gists_url":"https://api.github.com/users/mailjet/gists{/gist_id}","starred_url":"https://api.github.com/users/mailjet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mailjet/subscriptions","organizations_url":"https://api.github.com/users/mailjet/orgs","repos_url":"https://api.github.com/users/mailjet/repos","events_url":"https://api.github.com/users/mailjet/events{/privacy}","received_events_url":"https://api.github.com/users/mailjet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mailjet/mailjet-apiv3-go","description":"[API v3] Official Mailjet API v3 Go wrapper","fork":false,"url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go","forks_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/forks","keys_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/teams","hooks_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/hooks","issue_events_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/events{/number}","events_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/events","assignees_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/assignees{/user}","branches_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/branches{/branch}","tags_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/tags","blobs_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/statuses/{sha}","languages_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/languages","stargazers_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/stargazers","contributors_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/contributors","subscribers_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/subscribers","subscription_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/subscription","commits_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/contents/{+path}","compare_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/merges","archive_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/downloads","issues_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues{/number}","pulls_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/pulls{/number}","milestones_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/milestones{/number}","notifications_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/labels{/name}","releases_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/releases{/id}","deployments_url":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/deployments","created_at":"2015-10-16T07:19:07Z","updated_at":"2016-03-07T14:27:31Z","pushed_at":"2016-03-22T09:46:02Z","git_url":"git://github.com/mailjet/mailjet-apiv3-go.git","ssh_url":"git@github.com:mailjet/mailjet-apiv3-go.git","clone_url":"https://github.com/mailjet/mailjet-apiv3-go.git","svn_url":"https://github.com/mailjet/mailjet-apiv3-go","homepage":"https://dev.mailjet.com","size":40,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/pulls/12"},"html":{"href":"https://github.com/mailjet/mailjet-apiv3-go/pull/12"},"issue":{"href":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/12"},"comments":{"href":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/mailjet/mailjet-apiv3-go/statuses/1841653ed3024a16ed5aa9e1918bf0ddae5b7fa5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"GuillaumeBadi","id":6558790,"avatar_url":"https://avatars.githubusercontent.com/u/6558790?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeBadi","html_url":"https://github.com/GuillaumeBadi","followers_url":"https://api.github.com/users/GuillaumeBadi/followers","following_url":"https://api.github.com/users/GuillaumeBadi/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeBadi/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeBadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeBadi/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeBadi/orgs","repos_url":"https://api.github.com/users/GuillaumeBadi/repos","events_url":"https://api.github.com/users/GuillaumeBadi/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeBadi/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":7,"deletions":0,"changed_files":1}}