Skip to content

Conversation

@dyep49
Copy link

@dyep49 dyep49 commented Jun 11, 2019

As of late May, users can create and delete subtitles via the Twitter API.

https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-subtitles-create
https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-subtitles-delete

These endpoints require passing a JSON payload. To allow twit to support these endpoints, the subtitle endpoints need to be added to the JSONPAYLOAD_PATHS variable in twitter.js. In addition, to upload subtitles via the chunked media upload, the media_category must be set to "SUBTITLES".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant