MediaApi
Functions
Link copied to clipboard
Gets a single attachment by its id.
Link copied to clipboard
abstract suspend fun updateMediaAttachment(attachmentId: String, file: File?, thumbnail: File?, description: String?, focus: String?): Attachment
Get an attachment, before it is attached to a status and posted, but after it is accepted for processing.
Link copied to clipboard
abstract suspend fun uploadMediaAttachment(file: File, thumbnail: File?, description: String?, focus: String?): Attachment
Creates an attachment to be used with a new status.