-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample.php
48 lines (34 loc) · 1.18 KB
/
sample.php
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
<?php
include( 'Mailee.php' );
define('MAILEE_CONFIG_SITE', 'http://api.525636841fe05.testclientfoo.mailee.me');
/* LISTING ELEMENTS */
// $contact = new MaileeContact();
// $contacts = $contact->find('all');
// print_r($contacts)
// $list = new MaileeList();
// $lists = $list->find('all');
// print_r($lists)
// $tpl = new MaileeTemplate();
// $tpls = $tpl->find('all');
// print_r($tpls)
// $message = new MaileeTemplate();
// $messages = $message->find('all');
// print_r($messages)
/* GETTING ITEMS */
// $contact = new MaileeContact();
// print_r( $contact->find(2994619) );
// $list = new MaileeList();
// print_r( $list->find(23748) );
// $tpl = new MaileeTemplate();
// print_r( $tpl->find(4083) );
/* CREATING STUFF */
// $contact = new MaileeContact(array('email' => '[email protected]'));
// $c = $contact->save();
// print_r( $c );
// $message = new MaileeMessage(array('from_name' => 'Maiz', 'from_email' => '[email protected]', 'title' => 'PHP', 'subject' => 'PHP', 'emails' => '[email protected]', 'html' => 'Yo'));
// $m = $message->save();
// print_r( $m );
/* UPDATING STUFF */
// $contact = new MaileeContact(array('id' => 4921639, 'name' => 'Yo'));
// print_r( $contact->save() );
?>