| @@ 36-43 (lines=8) @@ | ||
| 33 | * |
|
| 34 | * @return array |
|
| 35 | */ |
|
| 36 | public function getOne($id) |
|
| 37 | { |
|
| 38 | $url = '/notifications/'.$id.'?app_id='.$this->api->getConfig()->getApplicationId(); |
|
| 39 | ||
| 40 | return $this->api->request('GET', $url, [ |
|
| 41 | 'Authorization' => 'Basic '.$this->api->getConfig()->getApplicationAuthKey(), |
|
| 42 | ]); |
|
| 43 | } |
|
| 44 | ||
| 45 | /** |
|
| 46 | * Get information about all notifications. |
|
| @@ 114-121 (lines=8) @@ | ||
| 111 | * |
|
| 112 | * @return array |
|
| 113 | */ |
|
| 114 | public function cancel($id) |
|
| 115 | { |
|
| 116 | $url = '/notifications/'.$id.'?app_id='.$this->api->getConfig()->getApplicationId(); |
|
| 117 | ||
| 118 | return $this->api->request('DELETE', $url, [ |
|
| 119 | 'Authorization' => 'Basic '.$this->api->getConfig()->getApplicationAuthKey(), |
|
| 120 | ]); |
|
| 121 | } |
|
| 122 | } |
|
| 123 | ||