@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Spatie\Dropbox; |
| 4 | 4 | |
| 5 | 5 | use Exception; |
| 6 | -use GuzzleHttp\Psr7\StreamWrapper; |
|
| 7 | 6 | use GuzzleHttp\Client as GuzzleClient; |
| 8 | -use Psr\Http\Message\ResponseInterface; |
|
| 9 | 7 | use GuzzleHttp\Exception\ClientException; |
| 8 | +use GuzzleHttp\Psr7\StreamWrapper; |
|
| 9 | +use Psr\Http\Message\ResponseInterface; |
|
| 10 | 10 | use Spatie\Dropbox\Exceptions\BadRequest; |
| 11 | 11 | |
| 12 | 12 | class Client |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 | /** |
| 279 | - * @param $endpoint |
|
| 279 | + * @param string $endpoint |
|
| 280 | 280 | * @param array $arguments |
| 281 | 281 | * @param string|resource $body |
| 282 | 282 | * |
@@ -304,6 +304,9 @@ discard block |
||
| 304 | 304 | return $response; |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | + /** |
|
| 308 | + * @param string $endpoint |
|
| 309 | + */ |
|
| 307 | 310 | public function rpcEndpointRequest($endpoint, array $parameters) |
| 308 | 311 | { |
| 309 | 312 | try { |