{"action":"opened","number":76,"pull_request":{"url":"https://api.github.com/repos/DoSomething/gateway/pulls/76","id":124209215,"html_url":"https://github.com/DoSomething/gateway/pull/76","diff_url":"https://github.com/DoSomething/gateway/pull/76.diff","patch_url":"https://github.com/DoSomething/gateway/pull/76.patch","issue_url":"https://api.github.com/repos/DoSomething/gateway/issues/76","number":76,"state":"open","locked":false,"title":"Gladiator Integration","user":{"login":"sbsmith86","id":1700409,"avatar_url":"https://avatars3.githubusercontent.com/u/1700409?v=3","gravatar_id":"","url":"https://api.github.com/users/sbsmith86","html_url":"https://github.com/sbsmith86","followers_url":"https://api.github.com/users/sbsmith86/followers","following_url":"https://api.github.com/users/sbsmith86/following{/other_user}","gists_url":"https://api.github.com/users/sbsmith86/gists{/gist_id}","starred_url":"https://api.github.com/users/sbsmith86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbsmith86/subscriptions","organizations_url":"https://api.github.com/users/sbsmith86/orgs","repos_url":"https://api.github.com/users/sbsmith86/repos","events_url":"https://api.github.com/users/sbsmith86/events{/privacy}","received_events_url":"https://api.github.com/users/sbsmith86/received_events","type":"User","site_admin":false},"body":"#### What's this PR do?\r\n\r\nThis PR adds gladiator support to Gateway. It covers two main endpoints,  `POST /users` endpoint that stores users in gladiator and `POST /unsubscribe` that unsubscribes them from competition messaging.\r\n\r\nI left out support for the `GET /users` endpoint as I think there was some discussion around changing the response on that endpoint and want to get that worked out first. \r\n\r\nAlso adds test coverage for Gladiator in Gateway. \r\n\r\n#### How should this be reviewed?\r\n\r\nCommit by commit, run unit tests\r\n\r\n#### Checklist\r\n- [ ] Tests added for new features/bug fixes.\r\n- [ ] Post a message in #api if this includes something that causes a rebuild!  \r\n","created_at":"2017-06-06T14:46:54Z","updated_at":"2017-06-06T14:46:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/gateway/pulls/76/commits","review_comments_url":"https://api.github.com/repos/DoSomething/gateway/pulls/76/comments","review_comment_url":"https://api.github.com/repos/DoSomething/gateway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoSomething/gateway/issues/76/comments","statuses_url":"https://api.github.com/repos/DoSomething/gateway/statuses/edc8fca9f9dcd0f0ee8a41bb968931204d400639","head":{"label":"DoSomething:gladiator-integration","ref":"gladiator-integration","sha":"edc8fca9f9dcd0f0ee8a41bb968931204d400639","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars1.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":52300899,"name":"gateway","full_name":"DoSomething/gateway","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars1.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/gateway","description":":lock_with_ink_pen: Standard PHP API client for DoSomething.org services.","fork":false,"url":"https://api.github.com/repos/DoSomething/gateway","forks_url":"https://api.github.com/repos/DoSomething/gateway/forks","keys_url":"https://api.github.com/repos/DoSomething/gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/gateway/teams","hooks_url":"https://api.github.com/repos/DoSomething/gateway/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/gateway/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/gateway/events","assignees_url":"https://api.github.com/repos/DoSomething/gateway/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/gateway/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/gateway/tags","blobs_url":"https://api.github.com/repos/DoSomething/gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/gateway/languages","stargazers_url":"https://api.github.com/repos/DoSomething/gateway/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/gateway/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/gateway/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/gateway/subscription","commits_url":"https://api.github.com/repos/DoSomething/gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/gateway/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/gateway/merges","archive_url":"https://api.github.com/repos/DoSomething/gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/gateway/downloads","issues_url":"https://api.github.com/repos/DoSomething/gateway/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/gateway/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/gateway/releases{/id}","deployments_url":"https://api.github.com/repos/DoSomething/gateway/deployments","created_at":"2016-02-22T19:50:52Z","updated_at":"2016-10-26T18:34:09Z","pushed_at":"2017-06-06T14:39:50Z","git_url":"git://github.com/DoSomething/gateway.git","ssh_url":"git@github.com:DoSomething/gateway.git","clone_url":"https://github.com/DoSomething/gateway.git","svn_url":"https://github.com/DoSomething/gateway","homepage":"","size":145,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"DoSomething:master","ref":"master","sha":"0ccdff03b48e87345d0595ed406d9b4823da8de4","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars1.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":52300899,"name":"gateway","full_name":"DoSomething/gateway","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars1.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/gateway","description":":lock_with_ink_pen: Standard PHP API client for DoSomething.org services.","fork":false,"url":"https://api.github.com/repos/DoSomething/gateway","forks_url":"https://api.github.com/repos/DoSomething/gateway/forks","keys_url":"https://api.github.com/repos/DoSomething/gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/gateway/teams","hooks_url":"https://api.github.com/repos/DoSomething/gateway/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/gateway/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/gateway/events","assignees_url":"https://api.github.com/repos/DoSomething/gateway/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/gateway/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/gateway/tags","blobs_url":"https://api.github.com/repos/DoSomething/gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/gateway/languages","stargazers_url":"https://api.github.com/repos/DoSomething/gateway/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/gateway/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/gateway/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/gateway/subscription","commits_url":"https://api.github.com/repos/DoSomething/gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/gateway/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/gateway/merges","archive_url":"https://api.github.com/repos/DoSomething/gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/gateway/downloads","issues_url":"https://api.github.com/repos/DoSomething/gateway/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/gateway/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/gateway/releases{/id}","deployments_url":"https://api.github.com/repos/DoSomething/gateway/deployments","created_at":"2016-02-22T19:50:52Z","updated_at":"2016-10-26T18:34:09Z","pushed_at":"2017-06-06T14:39:50Z","git_url":"git://github.com/DoSomething/gateway.git","ssh_url":"git@github.com:DoSomething/gateway.git","clone_url":"https://github.com/DoSomething/gateway.git","svn_url":"https://github.com/DoSomething/gateway","homepage":"","size":145,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/gateway/pulls/76"},"html":{"href":"https://github.com/DoSomething/gateway/pull/76"},"issue":{"href":"https://api.github.com/repos/DoSomething/gateway/issues/76"},"comments":{"href":"https://api.github.com/repos/DoSomething/gateway/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/gateway/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/gateway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/gateway/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/gateway/statuses/edc8fca9f9dcd0f0ee8a41bb968931204d400639"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":249,"deletions":0,"changed_files":6}}
{"actor":{"display_login":"sbsmith86"}}