{"action":"created","comment":{"url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/comments/57955565","id":57955565,"diff_hunk":"@@ -0,0 +1,136 @@\n+# Campaign signup transactional message\n+\n+User campaign signup 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+`campaign.signup.transactional`\n+\n+**Exchanges**\n+\n+- `transactionalExchange`\n+\n+**Consumers**\n+\n+| Consumer                                                                  | Binding key           |\n+| ------------------------------------------------------------------------- | ----------------------|\n+| [activityStatsQueue](../queues/activityStatsQueue.md)                     |  `*.*.transactional`  |\n+| [loggingQueue](../queues/loggingQueue.md)                                 |  `*.*.transactional`  |\n+| [mailchimpCampaignSignupQueue](../queues/mailchimpCampaignSignupQueue.md) |  `campaign.signup.*`  |\n+| [mobileCommonsQueue](../queues/mobileCommonsQueue.md)                     |  `campaign.signup.*`  |\n+| [transactionalQueue](../queues/transactionalQueue.md)                     |  `*.*.transactional`  |\n+| [userAPICampaignActivityQueue](../queues/userAPICampaignActivityQueue.md) |  `campaign.*.*`       |\n+\n+#### Current Message Payload\n+```js\n+{\n+\n+  /* Required. Always must be \"campaign_signup\". */\n+  activity: String,\n+\n+  /* Required. */\n+  email: String,\n+\n+  /* Required. Phoenix user id. */\n+  uid: Number,\n+\n+  /* Required. Phoenix campaign id. Example: \"1334\". */\n+  event_id: 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-campaign-signup-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: [1334, \"drupal_campaign_signup\"]. */\n+  email_tags: Array,\n+\n+  /* Required. Example: \"US\".  */\n+  campaign_country: String,\n+\n+  /* Required. Always \"1\" as the transaction always results in the email address being subscribed. */\n+  subscribed: Boolean,\n+\n+  /* Optional. Campaign langauge code. Example: \"en\". */\n+  campaign_language: String,\n+\n+  /* Required. An array of variables to inject into Mandrill template. */\n+  /* Required keys: \"MEMBER_COUNT\", \"FNAME\", \"CAMPAIGN_TITLE\",  */\n+  /* \"CAMPAIGN_LINK\", \"CALL_TO_ACTION\", \"STEP_ONE\", \"STEP_TWO\", \"STEP_THREE\". */\n+  merge_vars: Array,\n+\n+}\n+```\n+\n+----\n+\n+#### Suggested API\n+\n+**Endpoint**\n+\n+`POST /campaign/signup`\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. Phoenix campaign id. Example: \"1334\". */\n+  campaing_id: Number,","path":"documentation/messages/campaign.signup.transactional.md","position":103,"original_position":103,"commit_id":"37b3df1f7b8a0ec90490bc4acd26d7686d9380ae","original_commit_id":"37b3df1f7b8a0ec90490bc4acd26d7686d9380ae","user":{"login":"DeeZone","id":2119264,"avatar_url":"https://avatars.githubusercontent.com/u/2119264?v=3","gravatar_id":"","url":"https://api.github.com/users/DeeZone","html_url":"https://github.com/DeeZone","followers_url":"https://api.github.com/users/DeeZone/followers","following_url":"https://api.github.com/users/DeeZone/following{/other_user}","gists_url":"https://api.github.com/users/DeeZone/gists{/gist_id}","starred_url":"https://api.github.com/users/DeeZone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeeZone/subscriptions","organizations_url":"https://api.github.com/users/DeeZone/orgs","repos_url":"https://api.github.com/users/DeeZone/repos","events_url":"https://api.github.com/users/DeeZone/events{/privacy}","received_events_url":"https://api.github.com/users/DeeZone/received_events","type":"User","site_admin":false},"body":"should be `campaign_id`","created_at":"2016-03-30T20:14:28Z","updated_at":"2016-03-30T20:14:28Z","html_url":"https://github.com/DoSomething/quicksilver-api/pull/15#discussion_r57955565","pull_request_url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/comments/57955565"},"html":{"href":"https://github.com/DoSomething/quicksilver-api/pull/15#discussion_r57955565"},"pull_request":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/15","id":64688508,"html_url":"https://github.com/DoSomething/quicksilver-api/pull/15","diff_url":"https://github.com/DoSomething/quicksilver-api/pull/15.diff","patch_url":"https://github.com/DoSomething/quicksilver-api/pull/15.patch","issue_url":"https://api.github.com/repos/DoSomething/quicksilver-api/issues/15","number":15,"state":"open","locked":false,"title":"Documentation for campaign signup 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 `campaign.signup.transactional ` message.","created_at":"2016-03-30T20:07:57Z","updated_at":"2016-03-30T20:14:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ffb046be55b6a1a4480413fc1445632ec06e77d","assignee":{"login":"DeeZone","id":2119264,"avatar_url":"https://avatars.githubusercontent.com/u/2119264?v=3","gravatar_id":"","url":"https://api.github.com/users/DeeZone","html_url":"https://github.com/DeeZone","followers_url":"https://api.github.com/users/DeeZone/followers","following_url":"https://api.github.com/users/DeeZone/following{/other_user}","gists_url":"https://api.github.com/users/DeeZone/gists{/gist_id}","starred_url":"https://api.github.com/users/DeeZone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeeZone/subscriptions","organizations_url":"https://api.github.com/users/DeeZone/orgs","repos_url":"https://api.github.com/users/DeeZone/repos","events_url":"https://api.github.com/users/DeeZone/events{/privacy}","received_events_url":"https://api.github.com/users/DeeZone/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/15/commits","review_comments_url":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/15/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/15/comments","statuses_url":"https://api.github.com/repos/DoSomething/quicksilver-api/statuses/37b3df1f7b8a0ec90490bc4acd26d7686d9380ae","head":{"label":"DoSomething:campaign-signup-message-documentation","ref":"campaign-signup-message-documentation","sha":"37b3df1f7b8a0ec90490bc4acd26d7686d9380ae","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-30T20:12:03Z","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":31,"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":"219bec087e46948e9314996e66ec4ae2df79dad4","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-30T20:12:03Z","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":31,"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/15"},"html":{"href":"https://github.com/DoSomething/quicksilver-api/pull/15"},"issue":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/issues/15"},"comments":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/pulls/15/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/15/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/quicksilver-api/statuses/37b3df1f7b8a0ec90490bc4acd26d7686d9380ae"}}}}