{"action":"created","comment":{"url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/comments/57457987","id":57457987,"diff_hunk":"@@ -0,0 +1,109 @@\n+# User password reset transactional message\n+\n+User password reset event to trigger functionality within the Quicksilver system.\n+\n+----\n+\n+#### Current Configuration\n+Accessed by connecting to RabbitMQ server and sending message in the following format.\n+\n+**Routing key**\n+\n+`user.password_reset.transactional`\n+\n+**Exchanges**\n+- `transactionalExchange`\n+\n+**Consumers**\n+\n+| Consumer                                                                                 | Binding key           |\n+| ---------------------------------------------------------------------------------------- | ----------------------|\n+| [mbp-externalApplications-dashboard](../consumers/mbp-externalApplications-dashboard.md) |  `*.*.transactional`  |\n+| [mbc-logging-gateway](../consumers/mbc-logging-gateway.md)                               |  `*.*.transactional`  |\n+| [mbc-transactional-email](../consumers/mbc-transactional-email.md)                       |  `*.*.transactional`  |\n+\n+#### Current Message Payload\n+\n+```js\n+{\n+\n+  /* Required. Always must be `user_password`. */\n+  activity: String,\n+\n+  /* Required. */\n+  email: String,\n+\n+  /* Required. Phoenix user id. */\n+  uid: Number,\n+\n+  /* Required, Example: `US`. */\n+  user_country: String,\n+\n+  /* Required, Example: `en`. */\n+  user_language: String,\n+\n+  /* Optional. Default is generated base on `user_country` field. Example: `mb-user-password-US`. */\n+  email_template: String,\n+\n+  /* Required. Unix timestamp. Example: `1458067430`. */\n+  activity_timestamp: Number,\n+\n+  /* Required. Example: `US`. */\n+  application_id: String,\n+\n+  /* Required. An array of string to tag the message with. Example: `drupal_user_password`. */\n+  email_tags: Array,\n+\n+  /* Required. An array of variables to inject into Mandrill template. */\n+  /* Required keys: `MEMBER_COUNT`, `FNAME`, 'RESET_LINK' */\n+  merge_vars: Array,\n+\n+}\n+```\n+\n+----\n+\n+#### Suggested API\n+\n+**Endpoint**\n+\n+`POST /user/password`\n+\n+**Body Parameters**\n+\n+```js\n+{\n+\n+  /* Required: user_id or email or mobile. Northstar user ID. Example: `555b9225bffebc31068b4567`. */\n+  user_id: String,\n+\n+  /* Required: user_id or email or mobile. */\n+  email: String,\n+\n+  /* Required: user_id or email or mobile. */\n+  mobile: Integer,\n+\n+  /* Required. Valid reset password url. Example: `https://www.dosomething.org/user/reset/1/1458839724/N1RILd4CdbNExmQqcDQWi13KYTI-gQ1URWKmwCvFAfE`. */","path":"documentation/messages/user.password_reset.transactional.md","position":86,"original_position":86,"commit_id":"cd7c85758337ffc0eecad3a74f173946724a2e1c","original_commit_id":"cd7c85758337ffc0eecad3a74f173946724a2e1c","user":{"login":"sergii-tkachenko","id":672669,"avatar_url":"https://avatars.githubusercontent.com/u/672669?v=3","gravatar_id":"","url":"https://api.github.com/users/sergii-tkachenko","html_url":"https://github.com/sergii-tkachenko","followers_url":"https://api.github.com/users/sergii-tkachenko/followers","following_url":"https://api.github.com/users/sergii-tkachenko/following{/other_user}","gists_url":"https://api.github.com/users/sergii-tkachenko/gists{/gist_id}","starred_url":"https://api.github.com/users/sergii-tkachenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergii-tkachenko/subscriptions","organizations_url":"https://api.github.com/users/sergii-tkachenko/orgs","repos_url":"https://api.github.com/users/sergii-tkachenko/repos","events_url":"https://api.github.com/users/sergii-tkachenko/events{/privacy}","received_events_url":"https://api.github.com/users/sergii-tkachenko/received_events","type":"User","site_admin":false},"body":"Ah, so it does retrieve active reset password urls from Phoenix, right? Awesome. Maybe let's remove this option at all then?","created_at":"2016-03-25T16:03:18Z","updated_at":"2016-03-25T16:03:18Z","html_url":"https://github.com/DoSomething/quicksilver-api/pull/12#discussion_r57457987","pull_request_url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/comments/57457987"},"html":{"href":"https://github.com/DoSomething/quicksilver-api/pull/12#discussion_r57457987"},"pull_request":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/12","id":64074446,"html_url":"https://github.com/DoSomething/quicksilver-api/pull/12","diff_url":"https://github.com/DoSomething/quicksilver-api/pull/12.diff","patch_url":"https://github.com/DoSomething/quicksilver-api/pull/12.patch","issue_url":"https://api.github.com/repos/DoSomething/quicksilver-api/issues/12","number":12,"state":"open","locked":false,"title":"Documentation for user reset password message.","user":{"login":"sergii-tkachenko","id":672669,"avatar_url":"https://avatars.githubusercontent.com/u/672669?v=3","gravatar_id":"","url":"https://api.github.com/users/sergii-tkachenko","html_url":"https://github.com/sergii-tkachenko","followers_url":"https://api.github.com/users/sergii-tkachenko/followers","following_url":"https://api.github.com/users/sergii-tkachenko/following{/other_user}","gists_url":"https://api.github.com/users/sergii-tkachenko/gists{/gist_id}","starred_url":"https://api.github.com/users/sergii-tkachenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergii-tkachenko/subscriptions","organizations_url":"https://api.github.com/users/sergii-tkachenko/orgs","repos_url":"https://api.github.com/users/sergii-tkachenko/repos","events_url":"https://api.github.com/users/sergii-tkachenko/events{/privacy}","received_events_url":"https://api.github.com/users/sergii-tkachenko/received_events","type":"User","site_admin":false},"body":"This is to document `user.password_reset.transactional` message.\r\n\r\nAdditional changes:\r\n- `activity_timestamp` type fixed: this should have been set to Number\r\n- `application_id` extended to actually identify application client. Concerning old multisite apps, I don't think they end up using this API anyways.\r\n- `registration_source` removed. Email tags can be generated based on `application_id`.","created_at":"2016-03-24T18:02:20Z","updated_at":"2016-03-25T16:03:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb98943b84ecaa83953ba3453bb3a85c24ede8fd","assignee":{"login":"sergii-tkachenko","id":672669,"avatar_url":"https://avatars.githubusercontent.com/u/672669?v=3","gravatar_id":"","url":"https://api.github.com/users/sergii-tkachenko","html_url":"https://github.com/sergii-tkachenko","followers_url":"https://api.github.com/users/sergii-tkachenko/followers","following_url":"https://api.github.com/users/sergii-tkachenko/following{/other_user}","gists_url":"https://api.github.com/users/sergii-tkachenko/gists{/gist_id}","starred_url":"https://api.github.com/users/sergii-tkachenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergii-tkachenko/subscriptions","organizations_url":"https://api.github.com/users/sergii-tkachenko/orgs","repos_url":"https://api.github.com/users/sergii-tkachenko/repos","events_url":"https://api.github.com/users/sergii-tkachenko/events{/privacy}","received_events_url":"https://api.github.com/users/sergii-tkachenko/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/12/commits","review_comments_url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/12/comments","review_comment_url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoSomething/quicksilver-api/issues/12/comments","statuses_url":"https://api.github.com/repos/DoSomething/quicksilver-api/statuses/cd7c85758337ffc0eecad3a74f173946724a2e1c","head":{"label":"DoSomething:password-reset-message-documentation","ref":"password-reset-message-documentation","sha":"cd7c85758337ffc0eecad3a74f173946724a2e1c","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.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":53155159,"name":"quicksilver-api","full_name":"DoSomething/quicksilver-api","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.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/quicksilver-api","description":"API gateway to Quicksilver (Message Broker) functionality.","fork":false,"url":"https://api.github.com/repos/DoSomething/quicksilver-api","forks_url":"https://api.github.com/repos/DoSomething/quicksilver-api/forks","keys_url":"https://api.github.com/repos/DoSomething/quicksilver-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/quicksilver-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/quicksilver-api/teams","hooks_url":"https://api.github.com/repos/DoSomething/quicksilver-api/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/quicksilver-api/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/quicksilver-api/events","assignees_url":"https://api.github.com/repos/DoSomething/quicksilver-api/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/quicksilver-api/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/quicksilver-api/tags","blobs_url":"https://api.github.com/repos/DoSomething/quicksilver-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/quicksilver-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/quicksilver-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/quicksilver-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/quicksilver-api/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/quicksilver-api/languages","stargazers_url":"https://api.github.com/repos/DoSomething/quicksilver-api/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/quicksilver-api/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/quicksilver-api/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/quicksilver-api/subscription","commits_url":"https://api.github.com/repos/DoSomething/quicksilver-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/quicksilver-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/quicksilver-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/quicksilver-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/quicksilver-api/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/quicksilver-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/quicksilver-api/merges","archive_url":"https://api.github.com/repos/DoSomething/quicksilver-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/quicksilver-api/downloads","issues_url":"https://api.github.com/repos/DoSomething/quicksilver-api/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/quicksilver-api/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/quicksilver-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/quicksilver-api/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/quicksilver-api/releases{/id}","deployments_url":"https://api.github.com/repos/DoSomething/quicksilver-api/deployments","created_at":"2016-03-04T17:58:10Z","updated_at":"2016-03-10T17:10:29Z","pushed_at":"2016-03-24T18:02:20Z","git_url":"git://github.com/DoSomething/quicksilver-api.git","ssh_url":"git@github.com:DoSomething/quicksilver-api.git","clone_url":"https://github.com/DoSomething/quicksilver-api.git","svn_url":"https://github.com/DoSomething/quicksilver-api","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"DoSomething:master","ref":"master","sha":"860207e9472bb3333fe3bdab45d381b5d830cd6e","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.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":53155159,"name":"quicksilver-api","full_name":"DoSomething/quicksilver-api","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.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/quicksilver-api","description":"API gateway to Quicksilver (Message Broker) functionality.","fork":false,"url":"https://api.github.com/repos/DoSomething/quicksilver-api","forks_url":"https://api.github.com/repos/DoSomething/quicksilver-api/forks","keys_url":"https://api.github.com/repos/DoSomething/quicksilver-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/quicksilver-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/quicksilver-api/teams","hooks_url":"https://api.github.com/repos/DoSomething/quicksilver-api/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/quicksilver-api/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/quicksilver-api/events","assignees_url":"https://api.github.com/repos/DoSomething/quicksilver-api/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/quicksilver-api/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/quicksilver-api/tags","blobs_url":"https://api.github.com/repos/DoSomething/quicksilver-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/quicksilver-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/quicksilver-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/quicksilver-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/quicksilver-api/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/quicksilver-api/languages","stargazers_url":"https://api.github.com/repos/DoSomething/quicksilver-api/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/quicksilver-api/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/quicksilver-api/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/quicksilver-api/subscription","commits_url":"https://api.github.com/repos/DoSomething/quicksilver-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/quicksilver-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/quicksilver-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/quicksilver-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/quicksilver-api/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/quicksilver-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/quicksilver-api/merges","archive_url":"https://api.github.com/repos/DoSomething/quicksilver-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/quicksilver-api/downloads","issues_url":"https://api.github.com/repos/DoSomething/quicksilver-api/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/quicksilver-api/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/quicksilver-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/quicksilver-api/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/quicksilver-api/releases{/id}","deployments_url":"https://api.github.com/repos/DoSomething/quicksilver-api/deployments","created_at":"2016-03-04T17:58:10Z","updated_at":"2016-03-10T17:10:29Z","pushed_at":"2016-03-24T18:02:20Z","git_url":"git://github.com/DoSomething/quicksilver-api.git","ssh_url":"git@github.com:DoSomething/quicksilver-api.git","clone_url":"https://github.com/DoSomething/quicksilver-api.git","svn_url":"https://github.com/DoSomething/quicksilver-api","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/12"},"html":{"href":"https://github.com/DoSomething/quicksilver-api/pull/12"},"issue":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/issues/12"},"comments":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/statuses/cd7c85758337ffc0eecad3a74f173946724a2e1c"}}}}