1 | <?php |
||
7 | class Users extends Resource |
||
8 | { |
||
9 | /** |
||
10 | * The type of filter to apply to the user list, can be 'ids' or 'email' |
||
11 | * |
||
12 | * @param string |
||
13 | */ |
||
14 | private $filterType; |
||
15 | |||
16 | /** |
||
17 | * The value for the filter. Can be a single id, comma separated list of ids, an email address or part of an email address |
||
18 | * |
||
19 | * @param string |
||
20 | */ |
||
21 | private $filterValue; |
||
22 | |||
23 | /** |
||
24 | * Add a filter to the request |
||
25 | * |
||
26 | * @param string $type |
||
27 | * @param mixed $value Can be an array or string |
||
28 | * @throws Exception If an invalid parameter is passed |
||
29 | * @return Users |
||
30 | */ |
||
31 | public function filter($type, $value) |
||
65 | |||
66 | /** |
||
67 | * Perform API request |
||
68 | * |
||
69 | * @throws GuzzleHttp\Exception\ClientException Exception thrown by Guzzle |
||
70 | * @return GuzzleHttp\Psr7\Stream The guzzle response body |
||
71 | */ |
||
72 | public function get() |
||
81 | |||
82 | /** |
||
83 | * Parse filter values |
||
84 | * |
||
85 | * @param string $type |
||
86 | * @param string $value |
||
87 | * @return string |
||
88 | */ |
||
89 | private function parseFilterValues($type, $value) |
||
108 | } |
||
109 |