| 1 | <?php |
||
| 11 | class DivideIQClient extends DivideIQ |
||
| 12 | { |
||
| 13 | |||
| 14 | const DEFAULT_REQUEST_TIMEOUT = 60.0; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * {@inheritdoc} |
||
| 18 | */ |
||
| 19 | public function __construct($username, $password, $environment = 'production') |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Sets the request timeout value. |
||
| 28 | * |
||
| 29 | * @param float $timeout Timeout in seconds. |
||
| 30 | */ |
||
| 31 | public function setRequestTimeout($timeout) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Downloads a file using current client configuration and saves it at the specified destination. |
||
| 38 | * |
||
| 39 | * @param string|\GuzzleHttp\Url $uri File URI. |
||
| 40 | * @param string|resource|\GuzzleHttp\Stream\StreamInterface $destination Destination where the file should be saved to. |
||
| 41 | */ |
||
| 42 | public function download($uri, $destination) |
||
| 55 | } |
||
| 56 |