MediaUploadResponse - daneden/Twift GitHub Wiki
MediaUploadResponse
A response object containing information about the uploaded media
public struct MediaUploadResponse: Codable
Inheritance
Codable
Properties
mediaId
The uploaded media's unique Integer ID
public let mediaId: Int
mediaIdString
The uploaded media's ID represented as a String
. The string representation of the ID is preferred for ensuring precision.
public let mediaIdString: String
size
The size of the uploaded media
public let size: Int?
expiresAfterSecs
When this media upload will expire, if not attached to a Tweet
public let expiresAfterSecs: Int?
processingInfo
Information about the media's processing status. Most images are processed instantly, but large gifs and videos may take longer to process before they can be used in a Tweet.
public let processingInfo: MediaProcessingInfo?
Use the Twift.checkMediaUploadSuccessful()
method to wait until the media is successfully processed.