Causes the user (in the path) to like the specified tweet
Causes the user (in the path) to like the specified tweet. The user in the path must match the user context authorizing the request.
POST
/2/users/{id}/likes
curl \
-X POST https://api.twitter.com/2/users/2244994945/likes \
-H "Authorization: Oauth $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tweet_id":"string"}'
Request example
{
"tweet_id": "string"
}
Request examples
{
"tweet_id": "string"
}
Response examples (200)
{
"data": {
"liked": true
},
"errors": [
{
"type": "string",
"title": "string",
"detail": "string",
"status": 42
}
]
}
Response examples (200)
{
"data": {
"liked": true
},
"errors": [
{
"type": "string",
"title": "string",
"detail": "string",
"status": 42
}
]
}
Response examples (default)
{
"code": 42,
"message": "string"
}
Response examples (default)
{
"code": 42,
"message": "string"
}