Get Likes
Retrieve thread likes by id.
Paramsโ
Name | Type | Default | Description |
---|---|---|---|
id (required) | int | โ | Thread id |
Usageโ
- Python
- PHP
- cURL
from rocketapi import ThreadsAPI
threads_api = ThreadsAPI(token="your-api-key")
print(threads_api.get_thread_likes(3143854709524253592))
<?php
require('vendor/autoload.php');
use RocketAPI\ThreadsAPI;
$api = new ThreadsAPI('your-api-key');
print_r($api->getThreadLikes(3143854709524253592));
curl --request POST \
--url https://v1.rocketapi.io/threads/thread/get_likes \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"id": 3143854709524253592
}'
Response exampleโ
Loading...