__construct() __construct(\Iqrf\Repository\Utils\FileClient $httpClient) : mixed Constructor Parameters \Iqrf\Repository\Utils\FileClient $httpClient HTTP(S) file client Returns mixed —
setUseCredentials() setUseCredentials(bool $useCredentials) : void Stets the credentials usage Parameters bool $useCredentials Use credentials
download() download(string $fileName) : string|null Download the file and returns its content Parameters string $fileName File name Throws \Iqrf\Repository\Exceptions\DataNotFound \Iqrf\Repository\Exceptions\ServiceUnavailable Returns string|null — File content
get() get(string $fileName) : \Iqrf\Repository\Entities\File|null Return the file entity Parameters string $fileName File name Throws \Iqrf\Repository\Exceptions\DataNotFound \Nette\Utils\JsonException \Iqrf\Repository\Exceptions\ServiceUnavailable Returns \Iqrf\Repository\Entities\File|null — File
list() list() : \Iqrf\Repository\Entities\Files Lists files Throws \Iqrf\Repository\Exceptions\DataNotFound \Nette\Utils\JsonException \Iqrf\Repository\Exceptions\ServiceUnavailable Returns \Iqrf\Repository\Entities\Files — Files