diff --git a/robots.txt b/robots.txt new file mode 100644 index 000000000..60ed3d057 --- /dev/null +++ b/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Disallow: + diff --git a/source/web_hooks/claim_signup.rst b/source/web_hooks/claim_signup.rst index 881fde308..fee073323 100644 --- a/source/web_hooks/claim_signup.rst +++ b/source/web_hooks/claim_signup.rst @@ -26,6 +26,8 @@ Triggered when Friend Email Gating form is submitted (on Friend Claim Page). * **first_name** — affiliate member's first name * **last_name** — affiliate member's last name * **sub_choice** — subscription choice (optional, present only if the form included subscription checkbox) +* **subscribed_at** - date affiliate member has subscribed (optional) +* **unsubscribed_at** - date affiliate member has unsubscribed (optional) .. raw:: html @@ -48,7 +50,9 @@ Triggered when Friend Email Gating form is submitted (on Friend Claim Page). "first_name": null, "last_name": null, "gender": null, - "sub_choice": true + "sub_choice": true, + "subscribed_at":"2014-08-13T11:14:08.835-07:00", + "unsubscribed_at":null } .. raw:: html @@ -57,7 +61,7 @@ Triggered when Friend Email Gating form is submitted (on Friend Claim Page). .. code-block:: bash - curl --data 'key=&payload={"offer":{"email":"referrer@example.com","short_url_code":"1a2PV"},"campaign":{"id":350256053,"type":"StandaloneCampaign","cached_slug":"affiliate-campaign-test","tag_names":["default"]},"email":"john@example.com","first_name":null,"last_name":null,"gender":null,"sub_choice":true}' + curl --data 'key=&payload={"offer":{"email":"referrer@example.com","short_url_code":"1a2PV"},"campaign":{"id":350256053,"type":"StandaloneCampaign","cached_slug":"affiliate-campaign-test","tag_names":["default"]},"email":"john@example.com","first_name":null,"last_name":null,"gender":null,"sub_choice":true,"subscribed_at":"2014-08-13T11:14:08.835-07:00","unsubscribed_at":null}' .. container:: hidden diff --git a/source/web_hooks/offer_signup.rst b/source/web_hooks/offer_signup.rst index d2892c62d..08ecdc52d 100644 --- a/source/web_hooks/offer_signup.rst +++ b/source/web_hooks/offer_signup.rst @@ -30,6 +30,8 @@ additional parameters will be present: * **first_name** — affiliate member's first name * **last_name** — affiliate member's last name * **sub_choice** — subscription choice +* **subscribed_at** - date affiliate member has subscribed +* **unsubscribed_at** - date affiliate member has unsubscribed .. raw:: html @@ -52,7 +54,9 @@ additional parameters will be present: "first_name": "John", "last_name": "Doe", "gender": "male", - "sub_choice": false + "sub_choice": false, + "subscribed_at":null, + "unsubscribed_at":null } .. raw:: html diff --git a/source/web_hooks/referral.rst b/source/web_hooks/referral.rst index 62461580f..1ac3e2263 100644 --- a/source/web_hooks/referral.rst +++ b/source/web_hooks/referral.rst @@ -27,6 +27,8 @@ Triggered when there is a new referral in Talkable. * **last_name** * **gender** * **sub_choice** + * **subscribed_at** + * **unsubscribed_at** * **amount** — amount of money to reward (null when non-monetary incentive is used) * **incentive** — type of incentive reward (rebate, discount_coupon, other) @@ -52,6 +54,8 @@ Triggered when there is a new referral in Talkable. * **last_name** * **gender** * **sub_choice** + * **subscribed_at** + * **unsubscribed_at** * **amount** — amount of money to reward (null when non-monetary incentive is used) * **incentive** — type of incentive reward (rebate, discount_coupon, other) @@ -88,7 +92,9 @@ Triggered when there is a new referral in Talkable. "first_name": "Bob", "last_name": "Crane", "gender": null, - "sub_choice": false + "sub_choice": false, + "subscribed_at":null, + "unsubscribed_at":null }, "amount": "5.00", "incentive": "rebate", @@ -107,7 +113,9 @@ Triggered when there is a new referral in Talkable. "first_name": "Alice", "last_name": "Smith", "gender": "female", - "sub_choice": true + "sub_choice": true, + "subscribed_at":"2014-08-13T11:14:08.835-07:00", + "unsubscribed_at":null }, "amount": "0.00", "incentive": "other", @@ -129,7 +137,7 @@ Triggered when there is a new referral in Talkable. .. code-block:: bash - curl --data 'key=&payload={"campaign":{"id":608351285,"type":"StandaloneCampaign","cached_slug":"affiliate-campaign-test","tag_names":["default"]},"offer":{"email":"referrer@example.com","short_url_code":"1a2PV"},"referrer":{"id":529876428,"email":"referrer@example.com","person":{"email":"referrer@example.com","first_name":"Bob","last_name":"Crane","gender":null,"sub_choice":false},"amount":"5.00","incentive":"rebate","incentive_description":"$5.00 back","origin":{"id":413714044,"type":"AffiliateMember","email":"referrer@example.com"}},"referred":{"id":494279559,"email":"referred@example.com","person":{"email":"referred@example.com","first_name":"Alice","last_name":"Smith","gender":"female","sub_choice":true},"amount":"0.00","incentive":"other","incentive_description":"First Month Free","origin":{"id":730304164,"type":"Purchase","order_number":805174808,"order_date":"2014-04-01T03:51:50.373-07:00","customer_id":"241025369","coupon_code":"WHT297"}}}' + curl --data 'key=&payload={"campaign":{"id":608351285,"type":"StandaloneCampaign","cached_slug":"affiliate-campaign-test","tag_names":["default"]},"offer":{"email":"referrer@example.com","short_url_code":"1a2PV"},"referrer":{"id":529876428,"email":"referrer@example.com","person":{"email":"referrer@example.com","first_name":"Bob","last_name":"Crane","gender":null,"sub_choice":false,"subscribed_at":null,"unsubscribed_at":null},"amount":"5.00","incentive":"rebate","incentive_description":"$5.00 back","origin":{"id":413714044,"type":"AffiliateMember","email":"referrer@example.com"}},"referred":{"id":494279559,"email":"referred@example.com","person":{"email":"referred@example.com","first_name":"Alice","last_name":"Smith","gender":"female","sub_choice":true,"subscribed_at":"2014-08-13T11:14:08.835-07:00","unsubscribed_at":null},"amount":"0.00","incentive":"other","incentive_description":"First Month Free","origin":{"id":730304164,"type":"Purchase","order_number":805174808,"order_date":"2014-04-01T03:51:50.373-07:00","customer_id":"241025369","coupon_code":"WHT297"}}}' .. container:: hidden diff --git a/source/web_hooks/reward.rst b/source/web_hooks/reward.rst index 356f29254..2081937a4 100644 --- a/source/web_hooks/reward.rst +++ b/source/web_hooks/reward.rst @@ -27,6 +27,8 @@ it is getting paid after Referral is approved. * **last_name** * **gender** * **sub_choice** + * **subscribed_at** + * **unsubscribed_at** * **reward** — subhash of parameters describing the reward itself @@ -67,7 +69,9 @@ Reward reason can be of 6 following general types. "first_name": "Bob", "gender": null, "last_name": "Smith", - "sub_choice": true + "sub_choice": true, + "subscribed_at":"2014-08-13T11:14:08.835-07:00", + "unsubscribed_at":null }, "campaign": { "id": 146331555, @@ -92,7 +96,7 @@ Reward reason can be of 6 following general types. .. code-block:: bash - curl --data 'key=&payload={"person":{"email":"referrer@example.com","first_name":"Bob","gender":null,"last_name":"Smith","sub_choice":true},"campaign":{"id":146331555,"type":"StandaloneCampaign","cached_slug":"affiliate-campaign-test","tag_names":["default"]},"reward":{"reason":"referrer","incentive_type":"rebate","incentive_description":"$10.00 back","amount":10,"coupon_code":null}}' + curl --data 'key=&payload={"person":{"email":"referrer@example.com","first_name":"Bob","gender":null,"last_name":"Smith","sub_choice":true,"subscribed_at":"2014-08-13T11:14:08.835-07:00","unsubscribed_at":null},"campaign":{"id":146331555,"type":"StandaloneCampaign","cached_slug":"affiliate-campaign-test","tag_names":["default"]},"reward":{"reason":"referrer","incentive_type":"rebate","incentive_description":"$10.00 back","amount":10,"coupon_code":null}}' .. container:: hidden