UploadMediaAttachmentParams

public struct UploadMediaAttachmentParams : Codable, Sendable

Undocumented

  • Undocumented

    Declaration

    Swift

    public init(file: Data, thumbnail: Data? = nil, description: String? = nil, focus: String? = nil)
  • The file to be attached, encoded using multipart form data. The file must have a MIME

    Declaration

    Swift

    public let file: Data
  • The custom thumbnail of the media to be attached, encoded using multipart form data.

    Declaration

    Swift

    public let thumbnail: Data?
  • A plain-text description of the media, for accessibility purposes.

    Declaration

    Swift

    public let description: String?
  • Two floating points (x,y), comma-delimited, ranging from -1.0 to 1.0

    Declaration

    Swift

    public let focus: String?