1 | <?php |
||
11 | class WebhookList extends MoipResource |
||
12 | { |
||
13 | /** |
||
14 | * Path accounts API. |
||
15 | * |
||
16 | * @const string |
||
17 | */ |
||
18 | const PATH = 'webhooks'; |
||
19 | |||
20 | /** |
||
21 | * Initialize a new instance. |
||
22 | */ |
||
23 | public function initialize() |
||
28 | |||
29 | /** |
||
30 | * Get webhooks. |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function getWebhooks() |
||
38 | |||
39 | /** |
||
40 | * Get a webhook. |
||
41 | * |
||
42 | * @param Pagination $pagination |
||
43 | * @param string $resource_id |
||
44 | * @param string $event |
||
45 | * |
||
46 | * @return stdClass |
||
47 | */ |
||
48 | public function get(Pagination $pagination = null, $resource_id = null, $event = null) |
||
62 | |||
63 | /** |
||
64 | * Mount structure of Webhook List. |
||
65 | * |
||
66 | * @param \stdClass $response |
||
67 | * |
||
68 | * @return \Moip\Resource\WebhookList Webhook List |
||
69 | */ |
||
70 | protected function populate(stdClass $response) |
||
79 | } |
||
80 |