@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | - * @return array containing client id and secret |
|
| 114 | + * @return string[] containing client id and secret |
|
| 115 | 115 | */ |
| 116 | 116 | public function getCredentials() |
| 117 | 117 | { |
@@ -181,6 +181,10 @@ discard block |
||
| 181 | 181 | return $this->makeAPIRequest('GET', $entrypoint); |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | + /** |
|
| 185 | + * @param string $entrypoint |
|
| 186 | + * @param string $json |
|
| 187 | + */ |
|
| 184 | 188 | public function post($entrypoint, $json) |
| 185 | 189 | { |
| 186 | 190 | return $this->makeAPIRequest('POST', $entrypoint, $json); |
@@ -191,6 +195,9 @@ discard block |
||
| 191 | 195 | return $this->makeAPIRequest('PUT', $entrypoint, $json); |
| 192 | 196 | } |
| 193 | 197 | |
| 198 | + /** |
|
| 199 | + * @param string $method |
|
| 200 | + */ |
|
| 194 | 201 | protected function makeAPIRequest($method, $entrypoint, $json = null) |
| 195 | 202 | { |
| 196 | 203 | $this->log->debug('{method} {entrypoint} {json}', [ |