1 | <?php |
||
14 | class Notifications extends AbstractApi |
||
15 | { |
||
16 | protected $path = 'members/#id#/notifications'; |
||
17 | |||
18 | /** |
||
19 | * Get notifications related to a given list |
||
20 | * @link https://trello.com/docs/api/member/#get-1-members-idmember-or-username-notifications |
||
21 | * |
||
22 | * @param string $id the member's id or username |
||
23 | * @param array $params optional parameters |
||
24 | * |
||
25 | * @return array |
||
26 | */ |
||
27 | 1 | public function all($id, array $params = array()) |
|
31 | |||
32 | /** |
||
33 | * Filter notifications related to a given member |
||
34 | * @link https://trello.com/docs/api/member/#get-1-members-idmember-or-username-notifications-filter |
||
35 | * |
||
36 | * @param string $id the member's id or username |
||
37 | * @param array $event one of the events defined in \Trello\Events or 'all' |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | 3 | public function filter($id, $event = 'all') |
|
50 | } |
||
51 |