-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivecampaign.sh
55 lines (40 loc) · 1.88 KB
/
activecampaign.sh
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
#Campaigns
today=`date '+%Y_%m_%d__%H_%M_%S'`;
campaigns="campaigns_$today.json";
curl -H "Api-Token:secretkeyhere" --request GET --url https://accountname.api-us1.com/api/3/campaigns > $campaigns
#Automtions
automations="automations_$today.json";
curl -H "Api-Token:secretkeyhere" --request GET --url https://accountname.api-us1.com/api/3/automations > $automations
#Contacts
contacts="contacts_$today.json";
curl -H "Api-Token:secretkeyhere" GET https://accountname.api-us1.com/api/3/contacts > $contacts
#Deals
deals="deals_$today.json";
curl -H "Api-Token:secretkeyhere" GET https://accountname.api-us1.com/api/3/deals > $deals
#Pipelines
pipelines="pipelines_$today.json";
curl -H "Api-Token:secretkeyhere" GET https://accountname.api-us1.com/api/3/dealGroups > $pipelines
#Forms
forms="forms_$today.json";
curl -H "Api-Token:secretkeyhere" GET https://accountname.api-us1.com/api/3/forms > $forms
#Lists
lists="lists_$today.json"
curl -H "Api-Token:secretkeyhere" GET https://accountname.api-us1.com/api/3/lists > $lists
#Organizations
organizations="organizations_$today.json"
curl -H "Api-Token:secretkeyhere" GET https://accountname.api-us1.com/api/3/organizations > $organizations
#TrackedEvents
trackedevents="trackedevents_$today.json"
curl -H "Api-Token:secretkeyhere" GET https://accountname.api-us1.com/api/3/eventTrackingEvents > $trackedevents
#Tags
tags="tags_$today.json"
curl -H "Api-Token:secretkeyhere" GET https://accountname.api-us1.com/api/3/tags > $tags
#Users
users="users_$today.json"
curl -H "Api-Token:secretkeyhere" GET https://accountname.api-us1.com/api/3/users > $users
#Webhooks
webhooks="webhooks_$today.json"
curl -H "Api-Token:secretkeyhere" GET https://accountname.api-us1.com/api/3/webhooks > $webhooks
#Webhook Events
webhookevnts="webhookevents_$today.json"
curl -H "Api-Token:secretkeyhere" GET https://accountname.api-us1.com/api/3/webhook/events > $webhookevnts