createsend-sendowlfork 6.1.0.pre.hashie5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +9 -0
  4. data/.travis.yml +7 -0
  5. data/CONTRIBUTING.md +8 -0
  6. data/Gemfile +3 -0
  7. data/HISTORY.md +299 -0
  8. data/LICENSE +19 -0
  9. data/README.md +220 -0
  10. data/RELEASE.md +53 -0
  11. data/Rakefile +24 -0
  12. data/createsend.gemspec +31 -0
  13. data/lib/createsend/administrator.rb +49 -0
  14. data/lib/createsend/cacert.pem +3849 -0
  15. data/lib/createsend/campaign.rb +202 -0
  16. data/lib/createsend/client.rb +224 -0
  17. data/lib/createsend/createsend.rb +291 -0
  18. data/lib/createsend/journey.rb +58 -0
  19. data/lib/createsend/list.rb +258 -0
  20. data/lib/createsend/person.rb +59 -0
  21. data/lib/createsend/segment.rb +81 -0
  22. data/lib/createsend/subscriber.rb +113 -0
  23. data/lib/createsend/template.rb +42 -0
  24. data/lib/createsend/transactional_classic_email.rb +32 -0
  25. data/lib/createsend/transactional_smart_email.rb +31 -0
  26. data/lib/createsend/transactional_timeline.rb +45 -0
  27. data/lib/createsend/version.rb +3 -0
  28. data/lib/createsend.rb +17 -0
  29. data/samples/authentication_sample.rb +64 -0
  30. data/samples/clients_sample.rb +79 -0
  31. data/samples/journey_sample.rb +87 -0
  32. data/samples/lists_sample.rb +51 -0
  33. data/samples/segments_sample.rb +21 -0
  34. data/samples/subscribers_sample.rb +51 -0
  35. data/test/administrator_test.rb +37 -0
  36. data/test/campaign_test.rb +296 -0
  37. data/test/client_test.rb +253 -0
  38. data/test/createsend_test.rb +321 -0
  39. data/test/fixtures/active_subscribers.json +87 -0
  40. data/test/fixtures/add_admin.json +3 -0
  41. data/test/fixtures/add_person.json +3 -0
  42. data/test/fixtures/add_subscriber.json +1 -0
  43. data/test/fixtures/admin_details.json +5 -0
  44. data/test/fixtures/admin_get_primary_contact.json +3 -0
  45. data/test/fixtures/admin_set_primary_contact.json +3 -0
  46. data/test/fixtures/administrators.json +12 -0
  47. data/test/fixtures/billingdetails.json +3 -0
  48. data/test/fixtures/bounced_subscribers.json +20 -0
  49. data/test/fixtures/campaign_bounces.json +25 -0
  50. data/test/fixtures/campaign_clicks.json +50 -0
  51. data/test/fixtures/campaign_listsandsegments.json +15 -0
  52. data/test/fixtures/campaign_opens.json +71 -0
  53. data/test/fixtures/campaign_recipients.json +91 -0
  54. data/test/fixtures/campaign_spam.json +16 -0
  55. data/test/fixtures/campaign_summary.json +16 -0
  56. data/test/fixtures/campaign_unsubscribes.json +17 -0
  57. data/test/fixtures/campaigns.json +37 -0
  58. data/test/fixtures/client_details.json +28 -0
  59. data/test/fixtures/client_get_primary_contact.json +3 -0
  60. data/test/fixtures/client_set_primary_contact.json +3 -0
  61. data/test/fixtures/clients.json +10 -0
  62. data/test/fixtures/countries.json +247 -0
  63. data/test/fixtures/create_campaign.json +1 -0
  64. data/test/fixtures/create_client.json +1 -0
  65. data/test/fixtures/create_custom_field.json +1 -0
  66. data/test/fixtures/create_list.json +1 -0
  67. data/test/fixtures/create_list_webhook.json +1 -0
  68. data/test/fixtures/create_segment.json +1 -0
  69. data/test/fixtures/create_template.json +1 -0
  70. data/test/fixtures/custom_api_error.json +4 -0
  71. data/test/fixtures/custom_fields.json +23 -0
  72. data/test/fixtures/deleted_subscribers.json +61 -0
  73. data/test/fixtures/drafts.json +26 -0
  74. data/test/fixtures/email_client_usage.json +38 -0
  75. data/test/fixtures/expired_oauth_token_api_error.json +4 -0
  76. data/test/fixtures/external_session.json +3 -0
  77. data/test/fixtures/import_subscribers.json +7 -0
  78. data/test/fixtures/import_subscribers_partial_success.json +17 -0
  79. data/test/fixtures/invalid_oauth_token_api_error.json +4 -0
  80. data/test/fixtures/journey_bounces.json +35 -0
  81. data/test/fixtures/journey_clicks.json +35 -0
  82. data/test/fixtures/journey_opens.json +55 -0
  83. data/test/fixtures/journey_recipients.json +27 -0
  84. data/test/fixtures/journey_summary.json +18 -0
  85. data/test/fixtures/journey_unsubscribes.json +26 -0
  86. data/test/fixtures/journeys.json +20 -0
  87. data/test/fixtures/list_details.json +8 -0
  88. data/test/fixtures/list_stats.json +26 -0
  89. data/test/fixtures/list_webhooks.json +18 -0
  90. data/test/fixtures/lists.json +10 -0
  91. data/test/fixtures/listsforemail.json +14 -0
  92. data/test/fixtures/oauth_exchange_token.json +5 -0
  93. data/test/fixtures/oauth_exchange_token_error.json +4 -0
  94. data/test/fixtures/oauth_refresh_token_error.json +4 -0
  95. data/test/fixtures/people.json +14 -0
  96. data/test/fixtures/person_details.json +6 -0
  97. data/test/fixtures/refresh_oauth_token.json +5 -0
  98. data/test/fixtures/revoked_oauth_token_api_error.json +4 -0
  99. data/test/fixtures/scheduled_campaigns.json +30 -0
  100. data/test/fixtures/segment_details.json +24 -0
  101. data/test/fixtures/segment_subscribers.json +27 -0
  102. data/test/fixtures/segments.json +12 -0
  103. data/test/fixtures/subscriber_details.json +23 -0
  104. data/test/fixtures/subscriber_details_with_track_and_sms_pref.json +25 -0
  105. data/test/fixtures/subscriber_history.json +45 -0
  106. data/test/fixtures/suppressionlist.json +41 -0
  107. data/test/fixtures/systemdate.json +3 -0
  108. data/test/fixtures/tags.json +10 -0
  109. data/test/fixtures/template_details.json +6 -0
  110. data/test/fixtures/templates.json +14 -0
  111. data/test/fixtures/timezones.json +99 -0
  112. data/test/fixtures/transfer_credits.json +4 -0
  113. data/test/fixtures/tx_classicemail_groups.json +14 -0
  114. data/test/fixtures/tx_message_details.json +36 -0
  115. data/test/fixtures/tx_message_details_with_statistics.json +72 -0
  116. data/test/fixtures/tx_messages.json +38 -0
  117. data/test/fixtures/tx_messages_classic.json +15 -0
  118. data/test/fixtures/tx_messages_smart.json +15 -0
  119. data/test/fixtures/tx_resend_message.json +6 -0
  120. data/test/fixtures/tx_send_multiple.json +12 -0
  121. data/test/fixtures/tx_send_single.json +7 -0
  122. data/test/fixtures/tx_smartemail_details.json +23 -0
  123. data/test/fixtures/tx_smartemails.json +15 -0
  124. data/test/fixtures/tx_statistics_classic.json +14 -0
  125. data/test/fixtures/tx_statistics_smart.json +14 -0
  126. data/test/fixtures/unconfirmed_subscribers.json +43 -0
  127. data/test/fixtures/unsubscribed_subscribers.json +61 -0
  128. data/test/fixtures/update_custom_field.json +1 -0
  129. data/test/helper.rb +79 -0
  130. data/test/journey_test.rb +156 -0
  131. data/test/list_test.rb +288 -0
  132. data/test/person_test.rb +39 -0
  133. data/test/segment_test.rb +74 -0
  134. data/test/subscriber_test.rb +177 -0
  135. data/test/template_test.rb +36 -0
  136. data/test/transactional_classic_email_test.rb +60 -0
  137. data/test/transactional_smart_email_test.rb +83 -0
  138. data/test/transactional_timeline_test.rb +110 -0
  139. metadata +431 -0
@@ -0,0 +1,17 @@
1
+ {
2
+ "ResultData": {
3
+ "TotalUniqueEmailsSubmitted": 3,
4
+ "TotalExistingSubscribers": 2,
5
+ "TotalNewSubscribers": 0,
6
+ "DuplicateEmailsInSubmission": [],
7
+ "FailureDetails": [
8
+ {
9
+ "EmailAddress": "example+1@example",
10
+ "Code": 1,
11
+ "Message": "Invalid Email Address"
12
+ }
13
+ ]
14
+ },
15
+ "Code": 210,
16
+ "Message": "Subscriber Import had some failures"
17
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "Code": 120,
3
+ "Message": "Invalid OAuth Token"
4
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "Results": [
3
+ {
4
+ "EmailAddress": "example+1@example.com",
5
+ "BounceType": "4",
6
+ "Date": "2019-07-29 10:33:00",
7
+ "Reason": "Soft Bounce - Mailbox Full"
8
+ },
9
+ {
10
+ "EmailAddress": "example+2@example.com",
11
+ "BounceType": "1",
12
+ "Date": "2019-07-29 10:35:00",
13
+ "Reason": "Hard Bounce"
14
+ },
15
+ {
16
+ "EmailAddress": "example+3@example.com",
17
+ "BounceType": "1",
18
+ "Date": "2019-07-29 10:35:00",
19
+ "Reason": "Hard Bounce"
20
+ },
21
+ {
22
+ "EmailAddress": "example+4@example.com",
23
+ "BounceType": "1",
24
+ "Date": "2019-07-29 10:35:00",
25
+ "Reason": "Hard Bounce"
26
+ }
27
+ ],
28
+ "ResultsOrderedBy": "Date",
29
+ "OrderDirection": "ASC",
30
+ "PageNumber": 1,
31
+ "PageSize": 1000,
32
+ "RecordsOnThisPage": 4,
33
+ "TotalNumberOfRecords": 4,
34
+ "NumberOfPages": 1
35
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "Results": [
3
+ {
4
+ "EmailAddress": "example+1@example.com",
5
+ "Date": "2019-07-29 10:33:00",
6
+ "URL": "http://test.com",
7
+ "IPAddress": "192.168.0.3",
8
+ "Latitude": -33.8683,
9
+ "Longitude": 151.2086,
10
+ "City": "Sydney",
11
+ "Region": "New South Wales",
12
+ "CountryCode": "AU",
13
+ "CountryName": "Australia"
14
+ },
15
+ {
16
+ "EmailAddress": "example+2@example.com",
17
+ "Date": "2019-07-29 10:35:00",
18
+ "URL": "http://test.com",
19
+ "IPAddress": "192.168.0.3",
20
+ "Latitude": -33.8683,
21
+ "Longitude": 151.2086,
22
+ "City": "Sydney",
23
+ "Region": "New South Wales",
24
+ "CountryCode": "AU",
25
+ "CountryName": "Australia"
26
+ }
27
+ ],
28
+ "ResultsOrderedBy": "Date",
29
+ "OrderDirection": "ASC",
30
+ "PageNumber": 1,
31
+ "PageSize": 2,
32
+ "RecordsOnThisPage": 2,
33
+ "TotalNumberOfRecords": 5,
34
+ "NumberOfPages": 3
35
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "Results": [
3
+ {
4
+ "EmailAddress": "example+1@example.com",
5
+ "Date": "2019-07-29 10:33:00",
6
+ "IPAddress": "192.168.0.3",
7
+ "Latitude": -33.8683,
8
+ "Longitude": 151.2086,
9
+ "City": "Sydney",
10
+ "Region": "New South Wales",
11
+ "CountryCode": "AU",
12
+ "CountryName": "Australia"
13
+ },
14
+ {
15
+ "EmailAddress": "example+2@example.com",
16
+ "Date": "2019-07-29 10:35:00",
17
+ "IPAddress": "192.168.0.3",
18
+ "Latitude": -33.8683,
19
+ "Longitude": 151.2086,
20
+ "City": "Sydney",
21
+ "Region": "New South Wales",
22
+ "CountryCode": "AU",
23
+ "CountryName": "Australia"
24
+ },
25
+ {
26
+ "EmailAddress": "example+3@example.com",
27
+ "Date": "2019-07-29 10:35:00",
28
+ "IPAddress": "192.168.0.3",
29
+ "Latitude": -33.8683,
30
+ "Longitude": 151.2086,
31
+ "City": "Sydney",
32
+ "Region": "New South Wales",
33
+ "CountryCode": "AU",
34
+ "CountryName": "Australia"
35
+ },
36
+ {
37
+ "EmailAddress": "example+4@example.com",
38
+ "Date": "2019-07-29 10:35:00",
39
+ "IPAddress": "192.168.0.3",
40
+ "Latitude": -33.8683,
41
+ "Longitude": 151.2086,
42
+ "City": "Sydney",
43
+ "Region": "New South Wales",
44
+ "CountryCode": "AU",
45
+ "CountryName": "Australia"
46
+ }
47
+ ],
48
+ "ResultsOrderedBy": "Date",
49
+ "OrderDirection": "ASC",
50
+ "PageNumber": 1,
51
+ "PageSize": 1000,
52
+ "RecordsOnThisPage": 4,
53
+ "TotalNumberOfRecords": 4,
54
+ "NumberOfPages": 1
55
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "Results": [
3
+ {
4
+ "EmailAddress": "example+1@example.com",
5
+ "SentDate": "2019-07-12 09:45:00"
6
+ },
7
+ {
8
+ "EmailAddress": "example+2@example.com",
9
+ "SentDate": "2019-07-12 10:45:00"
10
+ },
11
+ {
12
+ "EmailAddress": "example+3@example.com",
13
+ "SentDate": "2019-07-13 09:00:00"
14
+ },
15
+ {
16
+ "EmailAddress": "example+4@example.com",
17
+ "SentDate": "2019-07-16 11:45:00"
18
+ }
19
+ ],
20
+ "ResultsOrderedBy": "SentDate",
21
+ "OrderDirection": "ASC",
22
+ "PageNumber": 2,
23
+ "PageSize": 10,
24
+ "RecordsOnThisPage": 4,
25
+ "TotalNumberOfRecords": 14,
26
+ "NumberOfPages": 2
27
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "JourneyID": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
3
+ "Name": "New journey",
4
+ "TriggerType": "On Subscription",
5
+ "Status": "Active",
6
+ "Emails": [
7
+ {
8
+ "EmailID": "b1b1b1b1b1b1b1b1b1b1",
9
+ "Name": "New Email",
10
+ "Bounced": 0,
11
+ "Clicked": 0,
12
+ "Opened": 3,
13
+ "Sent": 1,
14
+ "UniqueOpened": 1,
15
+ "Unsubscribed": 0
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "Results": [
3
+ {
4
+ "EmailAddress": "example+1@example.com",
5
+ "Date": "2019-07-29 10:33:00",
6
+ "IPAddress": "192.168.0.3"
7
+ },
8
+ {
9
+ "EmailAddress": "example+2@example.com",
10
+ "Date": "2019-07-29 10:35:00",
11
+ "IPAddress": "192.168.0.3"
12
+ },
13
+ {
14
+ "EmailAddress": "example+3@example.com",
15
+ "Date": "2019-07-29 10:35:00",
16
+ "IPAddress": "192.168.0.3"
17
+ }
18
+ ],
19
+ "ResultsOrderedBy": "Date",
20
+ "OrderDirection": "ASC",
21
+ "PageNumber": 1,
22
+ "PageSize": 1000,
23
+ "RecordsOnThisPage": 4,
24
+ "TotalNumberOfRecords": 4,
25
+ "NumberOfPages": 1
26
+ }
@@ -0,0 +1,20 @@
1
+ [
2
+ {
3
+ "ListID": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a",
4
+ "JourneyID": "b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b",
5
+ "Name": "Journey One",
6
+ "Status": "Not started"
7
+ },
8
+ {
9
+ "ListID": "c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c",
10
+ "JourneyID": "d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d",
11
+ "Name": "Journey Two",
12
+ "Status": "Active"
13
+ },
14
+ {
15
+ "ListID": "c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c",
16
+ "JourneyID": "e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e",
17
+ "Name": "Journey Three",
18
+ "Status": "Paused"
19
+ }
20
+ ]
@@ -0,0 +1,8 @@
1
+ {
2
+ "ConfirmedOptIn": false,
3
+ "Title": "a non-basic list :)",
4
+ "UnsubscribePage": "",
5
+ "ListID": "2fe4c8f0373ce320e2200596d7ef168f",
6
+ "ConfirmationSuccessPage": "",
7
+ "UnsubscribeSetting": "AllClientLists"
8
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "TotalActiveSubscribers": 6,
3
+ "NewActiveSubscribersToday": 0,
4
+ "NewActiveSubscribersYesterday": 8,
5
+ "NewActiveSubscribersThisWeek": 8,
6
+ "NewActiveSubscribersThisMonth": 8,
7
+ "NewActiveSubscribersThisYear": 8,
8
+ "TotalUnsubscribes": 2,
9
+ "UnsubscribesToday": 0,
10
+ "UnsubscribesYesterday": 2,
11
+ "UnsubscribesThisWeek": 2,
12
+ "UnsubscribesThisMonth": 2,
13
+ "UnsubscribesThisYear": 2,
14
+ "TotalDeleted": 0,
15
+ "DeletedToday": 0,
16
+ "DeletedYesterday": 0,
17
+ "DeletedThisWeek": 0,
18
+ "DeletedThisMonth": 0,
19
+ "DeletedThisYear": 0,
20
+ "TotalBounces": 0,
21
+ "BouncesToday": 0,
22
+ "BouncesYesterday": 0,
23
+ "BouncesThisWeek": 0,
24
+ "BouncesThisMonth": 0,
25
+ "BouncesThisYear": 0
26
+ }
@@ -0,0 +1,18 @@
1
+ [
2
+ {
3
+ "WebhookID": "943678317049bc13",
4
+ "Events": [ "Deactivate" ],
5
+ "Url": "http://www.postbin.org/d9w8ud9wud9w",
6
+ "Status": "Active",
7
+ "PayloadFormat": "Json"
8
+ },
9
+ {
10
+ "WebhookID": "ee1b3864e5ca6161",
11
+ "Events": [
12
+ "Subscribe"
13
+ ],
14
+ "Url": "http://www.postbin.org/hiuhiu2h2u",
15
+ "Status": "Active",
16
+ "PayloadFormat": "Xml"
17
+ }
18
+ ]
@@ -0,0 +1,10 @@
1
+ [
2
+ {
3
+ "ListID": "a58ee1d3039b8bec838e6d1482a8a965",
4
+ "Name": "List One"
5
+ },
6
+ {
7
+ "ListID": "99bc35084a5739127a8ab81eae5bd305",
8
+ "Name": "List Two"
9
+ }
10
+ ]
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "ListID": "ab4a2b57c7c8f1ba62f898a1af1a575b",
4
+ "ListName": "List Number One",
5
+ "SubscriberState": "Active",
6
+ "DateSubscriberAdded": "2012-08-20 22:32:00"
7
+ },
8
+ {
9
+ "ListID": "d8e59b07138cf1316a6587007c443e21",
10
+ "ListName": "List Number Two",
11
+ "SubscriberState": "Unsubscribed",
12
+ "DateSubscriberAdded": "2012-08-21 01:35:00"
13
+ }
14
+ ]
@@ -0,0 +1,5 @@
1
+ {
2
+ "access_token": "SlAV32hkKG",
3
+ "expires_in": 1209600,
4
+ "refresh_token": "tGzv3JOkF0XG5Qx2TlKWIA"
5
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "error": "invalid_grant",
3
+ "error_description": "Specified code was invalid or expired"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "error": "invalid_grant",
3
+ "error_description": "Specified refresh_token was invalid or expired"
4
+ }
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "EmailAddress": "person1@blackhole.com",
4
+ "Name": "Person One",
5
+ "Status": "Active",
6
+ "AccessLevel": 31
7
+ },
8
+ {
9
+ "EmailAddress": "person2@blackhole.com",
10
+ "Name": "Person Two",
11
+ "Status": "Active",
12
+ "AccessLevel": 0
13
+ }
14
+ ]
@@ -0,0 +1,6 @@
1
+ {
2
+ "EmailAddress": "person@example.com",
3
+ "Name": "Person One",
4
+ "AccessLevel": 1023,
5
+ "Status": "Active"
6
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "access_token": "SlAV32hkKG2e12e",
3
+ "expires_in": 1209600,
4
+ "refresh_token": "tGzv3JOkF0XG5Qx2TlKWIA"
5
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "Code": 122,
3
+ "Message": "Revoked OAuth Token"
4
+ }
@@ -0,0 +1,30 @@
1
+ [
2
+ {
3
+ "DateScheduled": "2011-05-25 10:40:00",
4
+ "ScheduledTimeZone": "(GMT+10:00) Canberra, Melbourne, Sydney",
5
+ "CampaignID": "827dbbd2161ea9989fa11ad562c66937",
6
+ "Name": "Magic Issue One",
7
+ "Subject": "Magic Issue One",
8
+ "FromName": "My Name",
9
+ "FromEmail": "myemail@example.com",
10
+ "ReplyTo": "myemail@example.com",
11
+ "DateCreated": "2011-05-24 10:37:00",
12
+ "PreviewURL": "http://createsend.com/t/r-DD543521A87C9B8B",
13
+ "PreviewTextURL": "http://createsend.com/t/r-DD543521A87C9B8B/t",
14
+ "Tags": ["tagexample"]
15
+ },
16
+ {
17
+ "DateScheduled": "2011-05-29 11:20:00",
18
+ "ScheduledTimeZone": "(GMT+10:00) Canberra, Melbourne, Sydney",
19
+ "CampaignID": "4f54bbd2161e65789fa11ad562c66937",
20
+ "Name": "Magic Issue Two",
21
+ "Subject": "Magic Issue Two",
22
+ "FromName": "My Name",
23
+ "FromEmail": "myemail@example.com",
24
+ "ReplyTo": "myemail@example.com",
25
+ "DateCreated": "2011-05-24 10:39:00",
26
+ "PreviewURL": "http://createsend.com/t/r-DD913521A87C9B8B",
27
+ "PreviewTextURL": "http://createsend.com/t/r-DD913521A87C9B8B/t",
28
+ "Tags": []
29
+ }
30
+ ]
@@ -0,0 +1,24 @@
1
+ {
2
+ "ActiveSubscribers": 0,
3
+ "RuleGroups": [
4
+ {
5
+ "Rules": [
6
+ {
7
+ "RuleType": "EmailAddress",
8
+ "Clause": "CONTAINS @hello.com"
9
+ }
10
+ ]
11
+ },
12
+ {
13
+ "Rules": [
14
+ {
15
+ "RuleType": "Name",
16
+ "Clause": "PROVIDED"
17
+ }
18
+ ]
19
+ }
20
+ ],
21
+ "ListID": "2bea949d0bf96148c3e6a209d2e82060",
22
+ "SegmentID": "dba84a225d5ce3d19105d7257baac46f",
23
+ "Title": "My Segment"
24
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "Results": [
3
+ {
4
+ "EmailAddress": "personone@example.com",
5
+ "Name": "Person One",
6
+ "Date": "2010-10-27 13:13:00",
7
+ "ListJoinedDate": "2010-10-27 13:13:00",
8
+ "State": "Active",
9
+ "CustomFields": []
10
+ },
11
+ {
12
+ "EmailAddress": "persontwo@example.com",
13
+ "Name": "Person Two",
14
+ "Date": "2010-10-27 13:13:00",
15
+ "ListJoinedDate": "2010-10-27 13:13:00",
16
+ "State": "Active",
17
+ "CustomFields": []
18
+ }
19
+ ],
20
+ "ResultsOrderedBy": "email",
21
+ "OrderDirection": "asc",
22
+ "PageNumber": 1,
23
+ "PageSize": 1000,
24
+ "RecordsOnThisPage": 2,
25
+ "TotalNumberOfRecords": 2,
26
+ "NumberOfPages": 1
27
+ }
@@ -0,0 +1,12 @@
1
+ [
2
+ {
3
+ "ListID": "a58ee1d3039b8bec838e6d1482a8a965",
4
+ "SegmentID": "46aa5e01fd43381863d4e42cf277d3a9",
5
+ "Title": "Segment One"
6
+ },
7
+ {
8
+ "ListID": "8dffb94c60c5faa3d40f496f2aa58a8a",
9
+ "SegmentID": "dhw9q8jd9q8wd09quw0d909wid9i09iq",
10
+ "Title": "Segment Two"
11
+ }
12
+ ]
@@ -0,0 +1,23 @@
1
+ {
2
+ "EmailAddress": "subscriber@example.com",
3
+ "Name": "Subscriber One",
4
+ "MobileNumber": "+61423153526",
5
+ "Date": "2010-10-25 10:28:00",
6
+ "ListJoinedDate": "2010-10-25 10:28:00",
7
+ "State": "Active",
8
+ "CustomFields": [
9
+ {
10
+ "Key": "website",
11
+ "Value": "http://example.com"
12
+ },
13
+ {
14
+ "Key": "age",
15
+ "Value": "24"
16
+ },
17
+ {
18
+ "Key": "subscription date",
19
+ "Value": "2010-03-09"
20
+ }
21
+ ],
22
+ "ReadsEmailWith": "Gmail"
23
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "EmailAddress": "subscriber@example.com",
3
+ "Name": "Subscriber One",
4
+ "MobileNumber": "+61423153526",
5
+ "Date": "2010-10-25 10:28:00",
6
+ "ListJoinedDate": "2010-10-25 10:28:00",
7
+ "State": "Active",
8
+ "CustomFields": [
9
+ {
10
+ "Key": "website",
11
+ "Value": "http://example.com"
12
+ },
13
+ {
14
+ "Key": "age",
15
+ "Value": "24"
16
+ },
17
+ {
18
+ "Key": "subscription date",
19
+ "Value": "2010-03-09"
20
+ }
21
+ ],
22
+ "ReadsEmailWith": "Gmail",
23
+ "ConsentToTrack": "Yes",
24
+ "ConsentToSendSms": "No"
25
+ }
@@ -0,0 +1,45 @@
1
+ [
2
+ {
3
+ "ID": "fc0ce7105baeaf97f47c99be31d02a91",
4
+ "Type": "Campaign",
5
+ "Name": "Campaign One",
6
+ "Actions": [
7
+ {
8
+ "Event": "Open",
9
+ "Date": "2010-10-12 13:18:00",
10
+ "IPAddress": "192.168.126.87",
11
+ "Detail": ""
12
+ },
13
+ {
14
+ "Event": "Click",
15
+ "Date": "2010-10-12 13:16:00",
16
+ "IPAddress": "192.168.126.87",
17
+ "Detail": "http://example.com/post/12323/"
18
+ },
19
+ {
20
+ "Event": "Click",
21
+ "Date": "2010-10-12 13:15:00",
22
+ "IPAddress": "192.168.126.87",
23
+ "Detail": "http://example.com/post/29889/"
24
+ },
25
+ {
26
+ "Event": "Open",
27
+ "Date": "2010-10-12 13:15:00",
28
+ "IPAddress": "192.168.126.87",
29
+ "Detail": ""
30
+ },
31
+ {
32
+ "Event": "Click",
33
+ "Date": "2010-10-12 13:01:00",
34
+ "IPAddress": "192.168.126.87",
35
+ "Detail": "http://example.com/post/82211/"
36
+ },
37
+ {
38
+ "Event": "Open",
39
+ "Date": "2010-10-12 13:01:00",
40
+ "IPAddress": "192.168.126.87",
41
+ "Detail": ""
42
+ }
43
+ ]
44
+ }
45
+ ]
@@ -0,0 +1,41 @@
1
+ {
2
+ "Results": [
3
+ {
4
+ "SuppressionReason": "Unsubscribed",
5
+ "EmailAddress": "example+1@example.com",
6
+ "Date": "2010-10-26 10:55:31",
7
+ "State": "Suppressed"
8
+ },
9
+ {
10
+ "SuppressionReason": "Unsubscribed",
11
+ "EmailAddress": "example+2@example.com",
12
+ "Date": "2010-10-26 10:55:31",
13
+ "State": "Suppressed"
14
+ },
15
+ {
16
+ "SuppressionReason": "Unsubscribed",
17
+ "EmailAddress": "example+3@example.com",
18
+ "Date": "2010-10-26 10:55:31",
19
+ "State": "Suppressed"
20
+ },
21
+ {
22
+ "SuppressionReason": "Unsubscribed",
23
+ "EmailAddress": "subscriber@example.com",
24
+ "Date": "2010-10-25 13:11:04",
25
+ "State": "Suppressed"
26
+ },
27
+ {
28
+ "SuppressionReason": "Unsubscribed",
29
+ "EmailAddress": "subscriberone@example.com",
30
+ "Date": "2010-10-25 13:04:15",
31
+ "State": "Suppressed"
32
+ }
33
+ ],
34
+ "ResultsOrderedBy": "email",
35
+ "OrderDirection": "asc",
36
+ "PageNumber": 1,
37
+ "PageSize": 1000,
38
+ "RecordsOnThisPage": 5,
39
+ "TotalNumberOfRecords": 5,
40
+ "NumberOfPages": 1
41
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "SystemDate": "2010-10-15 09:27:00"
3
+ }
@@ -0,0 +1,10 @@
1
+ [
2
+ {
3
+ "Name": "Tag One",
4
+ "NumberOfCampaigns": "120"
5
+ },
6
+ {
7
+ "Name": "Tag Two",
8
+ "NumberOfCampaigns": "62"
9
+ }
10
+ ]
@@ -0,0 +1,6 @@
1
+ {
2
+ "TemplateID": "98y2e98y289dh89h938389",
3
+ "Name": "Template One",
4
+ "PreviewURL": "http://preview.createsend.com/createsend/templates/previewTemplate.aspx?ID=01AF532CD8889B33&d=r&c=E816F55BFAD1A753",
5
+ "ScreenshotURL": "http://preview.createsend.com/ts/r/14/833/263/14833263.jpg?0318092600"
6
+ }
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "TemplateID": "5cac213cf061dd4e008de5a82b7a3621",
4
+ "Name": "Template One",
5
+ "PreviewURL": "http://preview.createsend.com/createsend/templates/previewTemplate.aspx?ID=01AF532CD8889B33&d=r&c=E816F55BFAD1A753",
6
+ "ScreenshotURL": "http://preview.createsend.com/ts/r/14/833/263/14833263.jpg?0318092541"
7
+ },
8
+ {
9
+ "TemplateID": "da645c271bc85fb6550acff937c2ab2e",
10
+ "Name": "Template Two",
11
+ "PreviewURL": "http://preview.createsend.com/createsend/templates/previewTemplate.aspx?ID=C8A180629495E798&d=r&c=E816F55BFAD1A753",
12
+ "ScreenshotURL": "http://preview.createsend.com/ts/r/18/7B3/552/187B3552.jpg?0705043527"
13
+ }
14
+ ]