uploadFinalize

fun Media.uploadFinalize(    mediaId: Long,     mediaKey: String? = null,     vararg options: Option): JsonObjectApiAction<Media>

The FINALIZE command should be called after the entire media file is uploaded using APPEND commands. If and (only if) the response of the FINALIZE command contains a processing_info field, it may also be necessary to use a STATUS command and wait for it to return success before proceeding to Tweet creation.

Twitter API reference

Receiver

Media endpoint instance.

Return

JsonObjectApiAction for blue.starry.penicillin.models.Media model.

Parameters

mediaId

The media_id returned from the INIT command.

options

Optional. Custom parameters of this request.