Gofile Client
Gofile.io client that uses a pre-setup HttpClient.
Constructors
Link copied to clipboard
Gofile.io client that uses an auto-setup HttpClient.
Link copied to clipboard
Gofile.io client that uses an auto-setup HttpClient.
Link copied to clipboard
Gofile.io client that uses an auto-setup HttpClient.
Link copied to clipboard
Types
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 setFolderOption(folderId: String, option: GofileFolderOption, token: String): Result<Unit>
Set an option on a folder.
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.
Extensions
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.