forked from apoloz/alfa-bank-sdk
28 lines
492 B
PHP
28 lines
492 B
PHP
<?php
|
|
|
|
namespace Apoloz\AlfaBank\Requests\FileExchange;
|
|
|
|
use Saloon\Enums\Method;
|
|
use Saloon\Http\Request;
|
|
|
|
class DownloadFileRequest extends Request
|
|
{
|
|
protected Method $method = Method::GET;
|
|
|
|
public function __construct(
|
|
protected string $downloadUrl
|
|
) {}
|
|
|
|
public function resolveEndpoint(): string
|
|
{
|
|
return $this->downloadUrl;
|
|
}
|
|
|
|
protected function defaultHeaders(): array
|
|
{
|
|
return [
|
|
'Accept' => '*/*',
|
|
];
|
|
}
|
|
}
|