PubNio calls X’s GET /2/media/upload (getMediaUploadStatus) to wait for X to finish processing an uploaded video.
How PubNio calls it
- Publishing:
POST /api/v1/posts(unless it saves a draft),POST /api/v1/posts/{postId}/publish, orPOST /api/v1/posts/{postId}/targets/{targetId}/retrystarts the delivery. - PubNio polls with
command=STATUS, sleeping for X’scheck_after_secsbetween reads, for up to 7 minutes and 120 reads per video. - A
failedstate fails the delivery asprovider_rejected; running out of time fails it asmedia_preparation_failed, since X may still finish.
Scopes
- The pinned spec lists one scope:
media.write. - PubNio’s X sign-in requests every one of them.
- Before a delivery makes this call, PubNio checks that the account granted
tweet.write.
Errors
PubNio has no X error code pages yet. Provider error codes covers the providers that have them.
Spec and changes
getMediaUploadStatus in the pinned spec, revision 2.175.
Checked weekly; no change to GET /2/media/upload recorded since this revision. Change tracker.
Limits
- PubNio does not keep polling after the delivery gives up, and it does not reuse a processed video for another delivery.