createsend-sendowlfork 6.1.0.pre.hashie5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +9 -0
- data/.travis.yml +7 -0
- data/CONTRIBUTING.md +8 -0
- data/Gemfile +3 -0
- data/HISTORY.md +299 -0
- data/LICENSE +19 -0
- data/README.md +220 -0
- data/RELEASE.md +53 -0
- data/Rakefile +24 -0
- data/createsend.gemspec +31 -0
- data/lib/createsend/administrator.rb +49 -0
- data/lib/createsend/cacert.pem +3849 -0
- data/lib/createsend/campaign.rb +202 -0
- data/lib/createsend/client.rb +224 -0
- data/lib/createsend/createsend.rb +291 -0
- data/lib/createsend/journey.rb +58 -0
- data/lib/createsend/list.rb +258 -0
- data/lib/createsend/person.rb +59 -0
- data/lib/createsend/segment.rb +81 -0
- data/lib/createsend/subscriber.rb +113 -0
- data/lib/createsend/template.rb +42 -0
- data/lib/createsend/transactional_classic_email.rb +32 -0
- data/lib/createsend/transactional_smart_email.rb +31 -0
- data/lib/createsend/transactional_timeline.rb +45 -0
- data/lib/createsend/version.rb +3 -0
- data/lib/createsend.rb +17 -0
- data/samples/authentication_sample.rb +64 -0
- data/samples/clients_sample.rb +79 -0
- data/samples/journey_sample.rb +87 -0
- data/samples/lists_sample.rb +51 -0
- data/samples/segments_sample.rb +21 -0
- data/samples/subscribers_sample.rb +51 -0
- data/test/administrator_test.rb +37 -0
- data/test/campaign_test.rb +296 -0
- data/test/client_test.rb +253 -0
- data/test/createsend_test.rb +321 -0
- data/test/fixtures/active_subscribers.json +87 -0
- data/test/fixtures/add_admin.json +3 -0
- data/test/fixtures/add_person.json +3 -0
- data/test/fixtures/add_subscriber.json +1 -0
- data/test/fixtures/admin_details.json +5 -0
- data/test/fixtures/admin_get_primary_contact.json +3 -0
- data/test/fixtures/admin_set_primary_contact.json +3 -0
- data/test/fixtures/administrators.json +12 -0
- data/test/fixtures/billingdetails.json +3 -0
- data/test/fixtures/bounced_subscribers.json +20 -0
- data/test/fixtures/campaign_bounces.json +25 -0
- data/test/fixtures/campaign_clicks.json +50 -0
- data/test/fixtures/campaign_listsandsegments.json +15 -0
- data/test/fixtures/campaign_opens.json +71 -0
- data/test/fixtures/campaign_recipients.json +91 -0
- data/test/fixtures/campaign_spam.json +16 -0
- data/test/fixtures/campaign_summary.json +16 -0
- data/test/fixtures/campaign_unsubscribes.json +17 -0
- data/test/fixtures/campaigns.json +37 -0
- data/test/fixtures/client_details.json +28 -0
- data/test/fixtures/client_get_primary_contact.json +3 -0
- data/test/fixtures/client_set_primary_contact.json +3 -0
- data/test/fixtures/clients.json +10 -0
- data/test/fixtures/countries.json +247 -0
- data/test/fixtures/create_campaign.json +1 -0
- data/test/fixtures/create_client.json +1 -0
- data/test/fixtures/create_custom_field.json +1 -0
- data/test/fixtures/create_list.json +1 -0
- data/test/fixtures/create_list_webhook.json +1 -0
- data/test/fixtures/create_segment.json +1 -0
- data/test/fixtures/create_template.json +1 -0
- data/test/fixtures/custom_api_error.json +4 -0
- data/test/fixtures/custom_fields.json +23 -0
- data/test/fixtures/deleted_subscribers.json +61 -0
- data/test/fixtures/drafts.json +26 -0
- data/test/fixtures/email_client_usage.json +38 -0
- data/test/fixtures/expired_oauth_token_api_error.json +4 -0
- data/test/fixtures/external_session.json +3 -0
- data/test/fixtures/import_subscribers.json +7 -0
- data/test/fixtures/import_subscribers_partial_success.json +17 -0
- data/test/fixtures/invalid_oauth_token_api_error.json +4 -0
- data/test/fixtures/journey_bounces.json +35 -0
- data/test/fixtures/journey_clicks.json +35 -0
- data/test/fixtures/journey_opens.json +55 -0
- data/test/fixtures/journey_recipients.json +27 -0
- data/test/fixtures/journey_summary.json +18 -0
- data/test/fixtures/journey_unsubscribes.json +26 -0
- data/test/fixtures/journeys.json +20 -0
- data/test/fixtures/list_details.json +8 -0
- data/test/fixtures/list_stats.json +26 -0
- data/test/fixtures/list_webhooks.json +18 -0
- data/test/fixtures/lists.json +10 -0
- data/test/fixtures/listsforemail.json +14 -0
- data/test/fixtures/oauth_exchange_token.json +5 -0
- data/test/fixtures/oauth_exchange_token_error.json +4 -0
- data/test/fixtures/oauth_refresh_token_error.json +4 -0
- data/test/fixtures/people.json +14 -0
- data/test/fixtures/person_details.json +6 -0
- data/test/fixtures/refresh_oauth_token.json +5 -0
- data/test/fixtures/revoked_oauth_token_api_error.json +4 -0
- data/test/fixtures/scheduled_campaigns.json +30 -0
- data/test/fixtures/segment_details.json +24 -0
- data/test/fixtures/segment_subscribers.json +27 -0
- data/test/fixtures/segments.json +12 -0
- data/test/fixtures/subscriber_details.json +23 -0
- data/test/fixtures/subscriber_details_with_track_and_sms_pref.json +25 -0
- data/test/fixtures/subscriber_history.json +45 -0
- data/test/fixtures/suppressionlist.json +41 -0
- data/test/fixtures/systemdate.json +3 -0
- data/test/fixtures/tags.json +10 -0
- data/test/fixtures/template_details.json +6 -0
- data/test/fixtures/templates.json +14 -0
- data/test/fixtures/timezones.json +99 -0
- data/test/fixtures/transfer_credits.json +4 -0
- data/test/fixtures/tx_classicemail_groups.json +14 -0
- data/test/fixtures/tx_message_details.json +36 -0
- data/test/fixtures/tx_message_details_with_statistics.json +72 -0
- data/test/fixtures/tx_messages.json +38 -0
- data/test/fixtures/tx_messages_classic.json +15 -0
- data/test/fixtures/tx_messages_smart.json +15 -0
- data/test/fixtures/tx_resend_message.json +6 -0
- data/test/fixtures/tx_send_multiple.json +12 -0
- data/test/fixtures/tx_send_single.json +7 -0
- data/test/fixtures/tx_smartemail_details.json +23 -0
- data/test/fixtures/tx_smartemails.json +15 -0
- data/test/fixtures/tx_statistics_classic.json +14 -0
- data/test/fixtures/tx_statistics_smart.json +14 -0
- data/test/fixtures/unconfirmed_subscribers.json +43 -0
- data/test/fixtures/unsubscribed_subscribers.json +61 -0
- data/test/fixtures/update_custom_field.json +1 -0
- data/test/helper.rb +79 -0
- data/test/journey_test.rb +156 -0
- data/test/list_test.rb +288 -0
- data/test/person_test.rb +39 -0
- data/test/segment_test.rb +74 -0
- data/test/subscriber_test.rb +177 -0
- data/test/template_test.rb +36 -0
- data/test/transactional_classic_email_test.rb +60 -0
- data/test/transactional_smart_email_test.rb +83 -0
- data/test/transactional_timeline_test.rb +110 -0
- 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,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,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,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,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,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
|
+
]
|