SubtitleCreate
curl --request POST \
--url https://api.twitter.com/2/media/subtitles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "1146654567674912769",
"media_category": "TweetVideo",
"subtitles": {
"display_name": "English",
"id": "1146654567674912769",
"language_code": "EN"
}
}'
{
"data": {
"associated_subtitles": [
{
"display_name": "English",
"id": "1146654567674912769",
"language_code": "EN"
}
],
"id": "1146654567674912769",
"media_category": "TweetVideo"
},
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
]
}
The access token received from the authorization server in the OAuth 2.0 flow.
The request has succeeded.
The response is of type object
.
curl --request POST \
--url https://api.twitter.com/2/media/subtitles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "1146654567674912769",
"media_category": "TweetVideo",
"subtitles": {
"display_name": "English",
"id": "1146654567674912769",
"language_code": "EN"
}
}'
{
"data": {
"associated_subtitles": [
{
"display_name": "English",
"id": "1146654567674912769",
"language_code": "EN"
}
],
"id": "1146654567674912769",
"media_category": "TweetVideo"
},
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
]
}
SubtitleCreate
curl --request POST \
--url https://api.twitter.com/2/media/subtitles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "1146654567674912769",
"media_category": "TweetVideo",
"subtitles": {
"display_name": "English",
"id": "1146654567674912769",
"language_code": "EN"
}
}'
{
"data": {
"associated_subtitles": [
{
"display_name": "English",
"id": "1146654567674912769",
"language_code": "EN"
}
],
"id": "1146654567674912769",
"media_category": "TweetVideo"
},
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
]
}
The access token received from the authorization server in the OAuth 2.0 flow.
The request has succeeded.
The response is of type object
.
curl --request POST \
--url https://api.twitter.com/2/media/subtitles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "1146654567674912769",
"media_category": "TweetVideo",
"subtitles": {
"display_name": "English",
"id": "1146654567674912769",
"language_code": "EN"
}
}'
{
"data": {
"associated_subtitles": [
{
"display_name": "English",
"id": "1146654567674912769",
"language_code": "EN"
}
],
"id": "1146654567674912769",
"media_category": "TweetVideo"
},
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
]
}