-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Webhook samples updated to include subscribed_at/unsubscribed_at
- Loading branch information
Andrii Tereshchenko
authored and
Andrii Tereshchenko
committed
Aug 13, 2014
1 parent
d83eaea
commit 06e6082
Showing
5 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
User-agent: * | ||
Disallow: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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=<key>&payload={"offer":{"email":"[email protected]","short_url_code":"1a2PV"},"campaign":{"id":350256053,"type":"StandaloneCampaign","cached_slug":"affiliate-campaign-test","tag_names":["default"]},"email":"[email protected]","first_name":null,"last_name":null,"gender":null,"sub_choice":true}' <url> | ||
curl --data 'key=<key>&payload={"offer":{"email":"[email protected]","short_url_code":"1a2PV"},"campaign":{"id":350256053,"type":"StandaloneCampaign","cached_slug":"affiliate-campaign-test","tag_names":["default"]},"email":"[email protected]","first_name":null,"last_name":null,"gender":null,"sub_choice":true,"subscribed_at":"2014-08-13T11:14:08.835-07:00","unsubscribed_at":null}' <url> | ||
.. container:: hidden | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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=<key>&payload={"campaign":{"id":608351285,"type":"StandaloneCampaign","cached_slug":"affiliate-campaign-test","tag_names":["default"]},"offer":{"email":"[email protected]","short_url_code":"1a2PV"},"referrer":{"id":529876428,"email":"[email protected]","person":{"email":"[email protected]","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":"[email protected]"}},"referred":{"id":494279559,"email":"[email protected]","person":{"email":"[email protected]","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"}}}' <url> | ||
curl --data 'key=<key>&payload={"campaign":{"id":608351285,"type":"StandaloneCampaign","cached_slug":"affiliate-campaign-test","tag_names":["default"]},"offer":{"email":"[email protected]","short_url_code":"1a2PV"},"referrer":{"id":529876428,"email":"[email protected]","person":{"email":"[email protected]","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":"[email protected]"}},"referred":{"id":494279559,"email":"[email protected]","person":{"email":"[email protected]","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"}}}' <url> | ||
.. container:: hidden | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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=<key>&payload={"person":{"email":"[email protected]","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}}' <url> | ||
curl --data 'key=<key>&payload={"person":{"email":"[email protected]","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}}' <url> | ||
.. container:: hidden | ||
|
||
|