StorageApi
extends AbstractApi
in package
Storage is a separate container for each file. You need to use Add Storage method before adding files to your projects via API.
Files that should be uploaded into storage include files for localization, screenshots, Glossaries, and Translation Memories. Storage id is the identifier of the file uploaded to the Storage.
Note: Files uploaded to the storage are kept during the next 24 hours
Table of Contents
Methods
- create() : Storage|null
- Add Storage
- delete() : mixed
- Delete Storage
- get() : Storage|null
- Get Storage Info
- list() : ModelCollection
- List Storages
Methods
create()
Add Storage
public
create(SplFileInfo $fileInfo) : Storage|null
Parameters
- $fileInfo : SplFileInfo
Tags
Return values
Storage|nulldelete()
Delete Storage
public
delete(int $storageId) : mixed
Parameters
- $storageId : int
Tags
get()
Get Storage Info
public
get(int $storageId) : Storage|null
Parameters
- $storageId : int
Tags
Return values
Storage|nulllist()
List Storages
public
list([array<string|int, mixed> $params = [] ]) : ModelCollection
Parameters
- $params : array<string|int, mixed> = []
-
integer $params[limit]
integer $params[offset]