Gofile Client
Gofile.io client that uses a pre-setup HttpClient.
Constructors
Link copied to clipboard
constructor()
Gofile.io client that uses an auto-setup HttpClient.
constructor(engine: HttpClientEngine)
Gofile.io client that uses an auto-setup HttpClient.
constructor(factory: HttpClientEngineFactory<*>)
Gofile.io client that uses an auto-setup HttpClient.
constructor(client: HttpClient)
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun createFolder(parentFolderId: String, folderName: String, token: String): Result<GofileCreateFolderResponse>
Create a new folder.
Link copied to clipboard
Retrieving specific account information. The statistics are updated every 24 hours.
Link copied to clipboard
Get a specific content details. Only available to premium users.
Link copied to clipboard
Get the best server available to receive files.
Link copied to clipboard
suspend fun uploadFile(fileName: String, fileContent: ByteArray, contentType: String, token: String? = null, folderId: String? = null, server: String? = null): Result<GofileUploadFileResponse>
Upload one file on a specific server. If you specify a folderId, the file will be added to this folder.
Link copied to clipboard
suspend fun GofileClient.uploadFile(file: File, token: String? = null, folderId: String? = null, server: String? = null): Result<GofileUploadFileResponse>
suspend fun GofileClient.uploadFile(file: File, contentType: String, token: String? = null, folderId: String? = null, server: String? = null): Result<GofileUploadFileResponse>
Upload one file on a specific server. If you specify a folderId, the file will be added to this folder.