| @@ 42-49 (lines=8) @@ | ||
| 39 | * |
|
| 40 | * @return array |
|
| 41 | */ |
|
| 42 | public function getOne($id) |
|
| 43 | { |
|
| 44 | $url = '/notifications/'.$id.'?app_id='.$this->api->getConfig()->getApplicationId(); |
|
| 45 | ||
| 46 | return $this->api->request('GET', $url, [ |
|
| 47 | 'Authorization' => 'Basic '.$this->api->getConfig()->getApplicationAuthKey(), |
|
| 48 | ]); |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * Get information about all notifications. |
|
| @@ 120-127 (lines=8) @@ | ||
| 117 | * |
|
| 118 | * @return array |
|
| 119 | */ |
|
| 120 | public function cancel($id) |
|
| 121 | { |
|
| 122 | $url = '/notifications/'.$id.'?app_id='.$this->api->getConfig()->getApplicationId(); |
|
| 123 | ||
| 124 | return $this->api->request('DELETE', $url, [ |
|
| 125 | 'Authorization' => 'Basic '.$this->api->getConfig()->getApplicationAuthKey(), |
|
| 126 | ]); |
|
| 127 | } |
|
| 128 | } |
|
| 129 | ||