File tree Expand file tree Collapse file tree 2 files changed +168
-0
lines changed Expand file tree Collapse file tree 2 files changed +168
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "global" : {
3+ "parameter_maps" : {
4+ "refresh_token" : " REFRESH-TOKEN"
5+ },
6+ "set" : {
7+ "endpoint_prerequisites" : [
8+ {
9+ "endpoint" : " refresh_token" ,
10+ "repeat" : false ,
11+ "merge_maps" : {
12+ "access_token" : " ACCESS-TOKEN"
13+ }
14+ }
15+ ]
16+ }
17+ },
18+ "common_endpoint_settings" : {
19+ "all" : {
20+ "time_limit" : 60
21+ }
22+ },
23+ "endpoints" : {
24+ "pull_user_feed" : {
25+ "maps_to" : " get_user_feed" ,
26+ "parameters" : {
27+ "limit" : 20
28+ },
29+ "output" : {
30+ "data" : {
31+ "format" : " iterable" ,
32+ "location" : [" data" ]
33+ },
34+ "filter" : [
35+ {
36+ "search_key" : " name" ,
37+ "search_value" : " *|NAME|*" ,
38+ "return_key" : " text"
39+ }
40+ ]
41+ }
42+ },
43+ "pull_clients" : {
44+ "maps_to" : " clients" ,
45+ "output" : {
46+ "data" : {
47+ "items" : {
48+ "locations" : {
49+ "id" : " ClientID" ,
50+ "name" : " Name"
51+ }
52+ }
53+ }
54+ }
55+ },
56+ "pull_list_count" : {
57+ "maps_to" : " list_stats" ,
58+ "parameter_maps" : {
59+ "list_id" : " LIST-ID"
60+ },
61+ "output" : {
62+ "data" : {
63+ "location" : [" Total" ]
64+ }
65+ }
66+ },
67+ "push_list_contacts" : {
68+ "maps_to" : " add_contacts" ,
69+ "parameter_maps" : {
70+ "contacts" : " Members" ,
71+ "list_id" : " LIST-ID"
72+ },
73+ "array_set_templates" : {
74+ "Members" : {
75+ "EmailAddress" : " email_address" ,
76+ "Name" : " full_name"
77+ }
78+ }
79+ }
80+ }
81+ }
Original file line number Diff line number Diff line change 1+ {
2+ "base_uri" : " https://some.api.com/" ,
3+ "authentication" : {
4+ "steps" : [
5+ {
6+ "type" : " redirect" ,
7+ "uri" : " https://some.api.com/oauth" ,
8+ "parameters" : {
9+ "client_id" : " *|CLIENT-ID|*" ,
10+ "redirect_uri" : " *|REDIRECT-URI|*"
11+ }
12+ },
13+ {
14+ "type" : " endpoint" ,
15+ "endpoint" : " access_token"
16+ }
17+ ]
18+ },
19+ "common_endpoint_settings" : {
20+ "all" : {
21+ "output_format" : " json" ,
22+ "request_options" : {
23+ "headers" : {
24+ "Content-type" : " application/x-www-form-urlencoded" ,
25+ "Accept" : " application/json"
26+ }
27+ },
28+ "parameters" : {
29+ "access_token" : " *|ACCESS-TOKEN|*"
30+ }
31+ }
32+ },
33+ "endpoints" : {
34+ "access_token" : {
35+ "uri" : " oauth/access_token" ,
36+ "method" : " get" ,
37+ "parameters" : {
38+ "client_id" : " *|CLIENT-ID|*" ,
39+ "client_secret" : " *|CLIENT-SECRET|*" ,
40+ "redirect_uri" : " *|REDIRECT-URI|*" ,
41+ "code" : null ,
42+ "access_token" : null
43+ }
44+ },
45+ "get_user" : {
46+ "uri" : " *|USER-ID|*" ,
47+ "method" : " get"
48+ },
49+ "get_lists" : {
50+ "uri" : " lists/list.json" ,
51+ "paging" : {
52+ "type" : " page_number" ,
53+ "parameters" : {
54+ "page_size" : {
55+ "name" : " limit"
56+ },
57+ "page_number" : {
58+ "name" : " start" ,
59+ "base" : 0
60+ }
61+ }
62+ }
63+ },
64+ "add_users" : {
65+ "uri" : " users/add.json" ,
66+ "method" : " post" ,
67+ "parameters" : {
68+ "id" : null ,
69+ "batch" : null
70+ },
71+ "parameter_format" : {
72+ "batch" : [
73+ {
74+ "email" : {
75+ "email" : null
76+ },
77+ "email_type" : null ,
78+ "merge_vars" : {
79+ "FNAME" : null ,
80+ "LNAME" : null
81+ }
82+ }
83+ ]
84+ }
85+ }
86+ }
87+ }
You can’t perform that action at this time.
0 commit comments