-
Notifications
You must be signed in to change notification settings - Fork 9
/
searches.php
38 lines (26 loc) · 966 Bytes
/
searches.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
<?php
// Include Emma class
require dirname(__DIR__).'/vendor/autoload.php';
// Create new Emma class object
$client = new MarkRoland\Emma\Client('1234567', 'Drivorj7QueckLeuk', 'WoghtepheecijnibV');
// Control Debugging output
$client->debug = true;
// Make API request
// List Members
$response = $client->list_searches();
// Get Search Details
//$response = $client->get_search_detail(1234);
// Create Search
//$criteria = array( 'and', array('email','contains','gmail.com') );
//$name = 'Gmail users';
//$response = $client->create_search($criteria, $name);
// Update Search
//$criteria = array( 'or', array('email','contains','gmail.com'), array('email','eq','test1@yahoo.com') );
//$name = 'Gmail users and test';
//$response = $client->update_search(1234,$criteria, $name);
// Get Search Members
//$response = $client->get_search_members(1234);
// Delete Search
//$response = $client->delete_search(1234);
// Display response
var_dump($response);