checkMediaUploadSuccessful(__) - daneden/Twift GitHub Wiki
checkMediaUploadSuccessful(_:)
Checks to see whether the mediaId
has finished processing successfully. This method will wait for the GET /1.1/media/upload.json?command=STATUS
endpoint to return either succeeded
or failed
; for large videos, this may take some time.
@available(*, deprecated, message: "Media methods currently depend on OAuth 1.0a authentication, which will be deprecated in a future version of Twift. These media methods may be removed or replaced in the future.")
public func checkMediaUploadSuccessful(_ mediaId: Media.ID)
Parameters
- mediaId: The media ID to check the upload status of
Returns
A Bool
indicating whether the media has uploaded successfully (true
) or not (false
).