- Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathexample.lua
More file actions
Latest commit
22 lines (20 loc) · 395 Bytes
/
Copy pathexample.lua
File metadata and controls
22 lines (20 loc) · 395 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
loadfile ("./api-client.lua")()
-- Usage :
-- api_call(
-- method,
-- url,
-- params
-- )
--
-- Where:
-- method is GET, POST, PUT etc
-- url is your api endpoint
-- params is a strign which contains all data you want to pass in the format:
-- "key1=value1;key2=value2"
--
result=api_call(
"POST",
"https://us2.api.mailchimp.com/2.0/lists/list",
"apikey=ABCD"
)
var_dump(result)