Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for subtitles create and delete #506

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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