Get Following
Retrieve Threads user following by id.
Paramsโ
Name | Type | Default | Description |
---|---|---|---|
id (required) | int | โ | User id |
max_id | string | None | Use for pagination |
query | string | None | Search query |
You can use the max_id
parameter to paginate through the media (take from the next_max_id
field of the response).
Note: if query
is specified max_id
is ignored.
Usageโ
- Python
- PHP
- cURL
from rocketapi import ThreadsAPI
threads_api = ThreadsAPI(token="your-api-key")
print(threads_api.get_user_following(1277527114))
<?php
require('vendor/autoload.php');
use RocketAPI\ThreadsAPI;
$api = new ThreadsAPI('your-api-key');
print_r($api->getUserFollowing(1277527114));
curl --request POST \
--url https://v1.rocketapi.io/threads/user/get_following \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"id": 1277527114
}'
Response exampleโ
Loading...