-
Notifications
You must be signed in to change notification settings - Fork 0
/
campaign.py
85 lines (85 loc) · 2.82 KB
/
campaign.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
data = {
'list': {
'variable': 'clientid',
'resource': 'clients',
'context': 'campaigns',
'fields': {
"FromName": "My Name",
"FromEmail": "[email protected]",
"ReplyTo": "[email protected]",
"WebVersionURL": "http://createsend.com/t/r-765E86829575EE2C/",
"WebVersionTextURL": "http://createsend.com/t/r-765E86829575EE2C/t",
"CampaignID": "fc0ce7105baeaf97f47c99be31d02a91",
"Subject": "Campaign One",
"Name": "Campaign One",
"SentDate": "0000-00-00 00:00:00",
"TotalRecipients": 999
}
},
'summary': {
'variable': 'campaignid',
'resource': 'campaigns',
'context': 'summary',
'fields': {
"Recipients": 1000,
"TotalOpened": 345,
"Clicks": 132,
"Unsubscribed": 43,
"Bounced": 15,
"UniqueOpened": 298,
"SpamComplaints": 23,
"WebVersionURL": "http://createsend.com/t/y-A1A1A1A1A1A1A1A1A1A1A1A1/",
"WebVersionTextURL": "http://createsend.com/t/y-A1A1A1A1A1A1A1A1A1A1A1A1/t",
"WorldviewURL": "http://myclient.createsend.com/reports/wv/y/8WY898U9U98U9U9",
"Forwards": 18,
"Likes": 25,
"Mentions": 11
}
},
'opens': {
'variable': 'campaignid',
'resource': 'campaigns',
'context': 'opens',
'fields': {
"EmailAddress": "[email protected]",
"ListID": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
"Date": "2009-05-18 16:45:00",
"IPAddress": "192.168.0.1",
"Latitude": -33.8683,
"Longitude": 151.2086,
"City": "Sydney",
"Region": "New South Wales",
"CountryCode": "AU",
"CountryName": "Australia"
}
},
'clicks': {
'variable': 'campaignid',
'resource': 'campaigns',
'context': 'clicks',
'fields': {
"EmailAddress": "[email protected]",
"URL": "http://www.myexammple.com/index.html",
"ListID": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
"Date": "2009-05-18 16:45:00",
"IPAddress": "192.168.0.1",
"Latitude": -33.8683,
"Longitude": 151.2086,
"City": "Sydney",
"Region": "New South Wales",
"CountryCode": "AU",
"CountryName": "Australia"
}
},
'unsubs': {
'variable': 'campaignid',
'resource': 'campaigns',
'context': 'unsubscribes',
'fields': {
"EmailAddress": "[email protected]",
"ListID": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
"Date": "2009-05-18 16:45:00",
"IPAddress": "192.168.0.1"
}
},
}