Example:
$stream = $object->downloadToFile(__DIR__ . '/my-file.txt');
public downloadToFile ( string $path, array $options = [] ) : Psr\Http\Message\StreamInterface | ||
$path | string | Path to download the file to. |
$options | array | [optional] { Configuration Options. @type string $encryptionKey An AES-256 customer-supplied encryption key. It will be neccesary to provide this when a key was used during the object's creation. If provided one must also include an `encryptionKeySHA256`. @type string $encryptionKeySHA256 The SHA256 hash of the customer-supplied encryption key. It will be neccesary to provide this when a key was used during the object's creation. If provided one must also include an `encryptionKey`. } |
return | Psr\Http\Message\StreamInterface |