-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
51 lines (51 loc) · 1.61 KB
/
test.js
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
var MandrillClient = require('./mandrill_client');
var Mandrill = new MandrillClient("YOUR_API_KEY");
function test(data){
console.log(data);
}
Mandrill.users.info("json", test);
Mandrill.users.info("xml", test);
Mandrill.users.info("php", test);
Mandrill.users.info(["xml", "php"], test);
Mandrill.users.ping("json", test);
Mandrill.users.ping("xml", test);
Mandrill.users.ping("php", test);
Mandrill.users.ping(["xml", "php"], test);
Mandrill.users.ping2("json", test);
Mandrill.users.ping2("xml", test);
Mandrill.users.ping2("php", test);
Mandrill.users.ping2(["xml", "php"], test);
Mandrill.users.senders("json", test);
Mandrill.users.senders("xml", test);
Mandrill.users.senders("php", test);
Mandrill.users.senders(["xml", "php"], test);
Mandrill.users.info({},test);
Mandrill.tags.list(test);
var add_template = {
"name": "Example Template",
"from_email": "[email protected]",
"from_name": "Example Name",
"subject": "example subject",
"code": "<div>example code</div>",
"text": "Example text content",
"publish": false,
"labels": [
"example-label"
]
};
Mandrill.templates.add("json", add_template, test);
Mandrill.templates.delete("php", {"name": "Example Template"}, test);
Mandrill.webhooks.list(test);
Mandrill.exports.list(test);
Mandrill.ips.list(test);
Mandrill.subaccounts.list(test);
Mandrill.senders.list(test);
Mandrill.rejects.list(test);
Mandrill.whitelists.list(test);
Mandrill.urls.list(test);
Mandrill.templates.list(test);
Mandrill.webhooks.list(test);
Mandrill.subaccounts.list(test);
Mandrill.inbound.domains(test);
Mandrill.exports.list(test);
Mandrill.ips.list(test);