{"action":"closed","number":85,"pull_request":{"url":"https://api.github.com/repos/afup/web/pulls/85","id":31384084,"html_url":"https://github.com/afup/web/pull/85","diff_url":"https://github.com/afup/web/pull/85.diff","patch_url":"https://github.com/afup/web/pull/85.patch","issue_url":"https://api.github.com/repos/afup/web/issues/85","number":85,"state":"closed","locked":false,"title":"Mandrill","user":{"login":"jacquesbh","id":858611,"avatar_url":"https://avatars.githubusercontent.com/u/858611?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquesbh","html_url":"https://github.com/jacquesbh","followers_url":"https://api.github.com/users/jacquesbh/followers","following_url":"https://api.github.com/users/jacquesbh/following{/other_user}","gists_url":"https://api.github.com/users/jacquesbh/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquesbh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquesbh/subscriptions","organizations_url":"https://api.github.com/users/jacquesbh/orgs","repos_url":"https://api.github.com/users/jacquesbh/repos","events_url":"https://api.github.com/users/jacquesbh/events{/privacy}","received_events_url":"https://api.github.com/users/jacquesbh/received_events","type":"User","site_admin":false},"body":"Op !\r\n\r\nAjout de la classe `AFUP_Mandrill` avec une méthode `send` pour envoyer un email avec un template pré-enregistré dans Mandrill.\r\n\r\n```php\r\n$mail = new AFUP_Mail();\r\n$receiver = array(\r\n    'email' => 'jab@monsieurbiz.com',\r\n    'name' => 'John'\r\n);\r\n$data = array(\r\n    'varname' => 'content'\r\n);\r\n$parameters = array(\r\n    'subject' => 'Hello World!'\r\n);\r\nif ($mail->send('template-identifier', $receiver, $data, $parameters)) {\r\n    echo \"email sent\";\r\n} else {\r\n    echo \"email not sent\";\r\n}\r\n```","created_at":"2015-03-17T22:22:57Z","updated_at":"2015-03-19T08:42:44Z","closed_at":"2015-03-19T08:42:44Z","merged_at":"2015-03-19T08:42:44Z","merge_commit_sha":"a6477093f2903cb0ff0e0a5af40892441b7923e8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/afup/web/pulls/85/commits","review_comments_url":"https://api.github.com/repos/afup/web/pulls/85/comments","review_comment_url":"https://api.github.com/repos/afup/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/afup/web/issues/85/comments","statuses_url":"https://api.github.com/repos/afup/web/statuses/00c36fd34d73645703c9ef24ec1bf58166e17e15","head":{"label":"afup:mandrill","ref":"mandrill","sha":"00c36fd34d73645703c9ef24ec1bf58166e17e15","user":{"login":"afup","id":1090307,"avatar_url":"https://avatars.githubusercontent.com/u/1090307?v=3","gravatar_id":"","url":"https://api.github.com/users/afup","html_url":"https://github.com/afup","followers_url":"https://api.github.com/users/afup/followers","following_url":"https://api.github.com/users/afup/following{/other_user}","gists_url":"https://api.github.com/users/afup/gists{/gist_id}","starred_url":"https://api.github.com/users/afup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afup/subscriptions","organizations_url":"https://api.github.com/users/afup/orgs","repos_url":"https://api.github.com/users/afup/repos","events_url":"https://api.github.com/users/afup/events{/privacy}","received_events_url":"https://api.github.com/users/afup/received_events","type":"Organization","site_admin":false},"repo":{"id":16863464,"name":"web","full_name":"afup/web","owner":{"login":"afup","id":1090307,"avatar_url":"https://avatars.githubusercontent.com/u/1090307?v=3","gravatar_id":"","url":"https://api.github.com/users/afup","html_url":"https://github.com/afup","followers_url":"https://api.github.com/users/afup/followers","following_url":"https://api.github.com/users/afup/following{/other_user}","gists_url":"https://api.github.com/users/afup/gists{/gist_id}","starred_url":"https://api.github.com/users/afup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afup/subscriptions","organizations_url":"https://api.github.com/users/afup/orgs","repos_url":"https://api.github.com/users/afup/repos","events_url":"https://api.github.com/users/afup/events{/privacy}","received_events_url":"https://api.github.com/users/afup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/afup/web","description":"The current AFUP's website","fork":false,"url":"https://api.github.com/repos/afup/web","forks_url":"https://api.github.com/repos/afup/web/forks","keys_url":"https://api.github.com/repos/afup/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/afup/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/afup/web/teams","hooks_url":"https://api.github.com/repos/afup/web/hooks","issue_events_url":"https://api.github.com/repos/afup/web/issues/events{/number}","events_url":"https://api.github.com/repos/afup/web/events","assignees_url":"https://api.github.com/repos/afup/web/assignees{/user}","branches_url":"https://api.github.com/repos/afup/web/branches{/branch}","tags_url":"https://api.github.com/repos/afup/web/tags","blobs_url":"https://api.github.com/repos/afup/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/afup/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/afup/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/afup/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/afup/web/statuses/{sha}","languages_url":"https://api.github.com/repos/afup/web/languages","stargazers_url":"https://api.github.com/repos/afup/web/stargazers","contributors_url":"https://api.github.com/repos/afup/web/contributors","subscribers_url":"https://api.github.com/repos/afup/web/subscribers","subscription_url":"https://api.github.com/repos/afup/web/subscription","commits_url":"https://api.github.com/repos/afup/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/afup/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/afup/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/afup/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/afup/web/contents/{+path}","compare_url":"https://api.github.com/repos/afup/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/afup/web/merges","archive_url":"https://api.github.com/repos/afup/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/afup/web/downloads","issues_url":"https://api.github.com/repos/afup/web/issues{/number}","pulls_url":"https://api.github.com/repos/afup/web/pulls{/number}","milestones_url":"https://api.github.com/repos/afup/web/milestones{/number}","notifications_url":"https://api.github.com/repos/afup/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/afup/web/labels{/name}","releases_url":"https://api.github.com/repos/afup/web/releases{/id}","created_at":"2014-02-15T13:41:32Z","updated_at":"2015-03-17T08:11:14Z","pushed_at":"2015-03-19T08:42:44Z","git_url":"git://github.com/afup/web.git","ssh_url":"git@github.com:afup/web.git","clone_url":"https://github.com/afup/web.git","svn_url":"https://github.com/afup/web","homepage":null,"size":203462,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":28,"forks":12,"open_issues":28,"watchers":3,"default_branch":"master"}},"base":{"label":"afup:master","ref":"master","sha":"11e5d7279ef0e0c073aaf4f05d2acbb726bb9e0f","user":{"login":"afup","id":1090307,"avatar_url":"https://avatars.githubusercontent.com/u/1090307?v=3","gravatar_id":"","url":"https://api.github.com/users/afup","html_url":"https://github.com/afup","followers_url":"https://api.github.com/users/afup/followers","following_url":"https://api.github.com/users/afup/following{/other_user}","gists_url":"https://api.github.com/users/afup/gists{/gist_id}","starred_url":"https://api.github.com/users/afup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afup/subscriptions","organizations_url":"https://api.github.com/users/afup/orgs","repos_url":"https://api.github.com/users/afup/repos","events_url":"https://api.github.com/users/afup/events{/privacy}","received_events_url":"https://api.github.com/users/afup/received_events","type":"Organization","site_admin":false},"repo":{"id":16863464,"name":"web","full_name":"afup/web","owner":{"login":"afup","id":1090307,"avatar_url":"https://avatars.githubusercontent.com/u/1090307?v=3","gravatar_id":"","url":"https://api.github.com/users/afup","html_url":"https://github.com/afup","followers_url":"https://api.github.com/users/afup/followers","following_url":"https://api.github.com/users/afup/following{/other_user}","gists_url":"https://api.github.com/users/afup/gists{/gist_id}","starred_url":"https://api.github.com/users/afup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afup/subscriptions","organizations_url":"https://api.github.com/users/afup/orgs","repos_url":"https://api.github.com/users/afup/repos","events_url":"https://api.github.com/users/afup/events{/privacy}","received_events_url":"https://api.github.com/users/afup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/afup/web","description":"The current AFUP's website","fork":false,"url":"https://api.github.com/repos/afup/web","forks_url":"https://api.github.com/repos/afup/web/forks","keys_url":"https://api.github.com/repos/afup/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/afup/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/afup/web/teams","hooks_url":"https://api.github.com/repos/afup/web/hooks","issue_events_url":"https://api.github.com/repos/afup/web/issues/events{/number}","events_url":"https://api.github.com/repos/afup/web/events","assignees_url":"https://api.github.com/repos/afup/web/assignees{/user}","branches_url":"https://api.github.com/repos/afup/web/branches{/branch}","tags_url":"https://api.github.com/repos/afup/web/tags","blobs_url":"https://api.github.com/repos/afup/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/afup/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/afup/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/afup/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/afup/web/statuses/{sha}","languages_url":"https://api.github.com/repos/afup/web/languages","stargazers_url":"https://api.github.com/repos/afup/web/stargazers","contributors_url":"https://api.github.com/repos/afup/web/contributors","subscribers_url":"https://api.github.com/repos/afup/web/subscribers","subscription_url":"https://api.github.com/repos/afup/web/subscription","commits_url":"https://api.github.com/repos/afup/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/afup/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/afup/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/afup/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/afup/web/contents/{+path}","compare_url":"https://api.github.com/repos/afup/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/afup/web/merges","archive_url":"https://api.github.com/repos/afup/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/afup/web/downloads","issues_url":"https://api.github.com/repos/afup/web/issues{/number}","pulls_url":"https://api.github.com/repos/afup/web/pulls{/number}","milestones_url":"https://api.github.com/repos/afup/web/milestones{/number}","notifications_url":"https://api.github.com/repos/afup/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/afup/web/labels{/name}","releases_url":"https://api.github.com/repos/afup/web/releases{/id}","created_at":"2014-02-15T13:41:32Z","updated_at":"2015-03-17T08:11:14Z","pushed_at":"2015-03-19T08:42:44Z","git_url":"git://github.com/afup/web.git","ssh_url":"git@github.com:afup/web.git","clone_url":"https://github.com/afup/web.git","svn_url":"https://github.com/afup/web","homepage":null,"size":203462,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":28,"forks":12,"open_issues":28,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/afup/web/pulls/85"},"html":{"href":"https://github.com/afup/web/pull/85"},"issue":{"href":"https://api.github.com/repos/afup/web/issues/85"},"comments":{"href":"https://api.github.com/repos/afup/web/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/afup/web/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/afup/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/afup/web/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/afup/web/statuses/00c36fd34d73645703c9ef24ec1bf58166e17e15"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mikaelkael","id":212540,"avatar_url":"https://avatars.githubusercontent.com/u/212540?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelkael","html_url":"https://github.com/mikaelkael","followers_url":"https://api.github.com/users/mikaelkael/followers","following_url":"https://api.github.com/users/mikaelkael/following{/other_user}","gists_url":"https://api.github.com/users/mikaelkael/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelkael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelkael/subscriptions","organizations_url":"https://api.github.com/users/mikaelkael/orgs","repos_url":"https://api.github.com/users/mikaelkael/repos","events_url":"https://api.github.com/users/mikaelkael/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelkael/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":2724,"deletions":0,"changed_files":19}}