All URIs are relative to https://api.unifapi.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| threadsSearchProfilesGet() | GET /threads/search/profiles | Search Threads users by keyword |
| threadsSearchRecentGet() | GET /threads/search/recent | Search recent Threads posts |
| threadsSearchTopGet() | GET /threads/search/top | Search top Threads posts |
| threadsUsersUsernameGet() | GET /threads/users/{username} | Get a Threads user profile by username |
| threadsUsersUsernamePostsGet() | GET /threads/users/{username}/posts | List Threads posts authored by a user |
| threadsUsersUsernameRepliesGet() | GET /threads/users/{username}/replies | List Threads replies authored by a user |
| threadsUsersUsernameRepostsGet() | GET /threads/users/{username}/reposts | List Threads reposts by a user |
threadsSearchProfilesGet($q): \Unifapi\\Sdk\Model\ThreadsSearchProfilesGet200ResponseSearch Threads users by keyword
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Unifapi\\Sdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Unifapi\\Sdk\Api\ThreadsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$q = 'q_example'; // string | Search keyword.
try {
$result = $apiInstance->threadsSearchProfilesGet($q);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ThreadsApi->threadsSearchProfilesGet: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| q | string | Search keyword. |
\Unifapi\Sdk\Model\ThreadsSearchProfilesGet200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
threadsSearchRecentGet($q, $cursor): \Unifapi\\Sdk\Model\ThreadsSearchRecentGet200ResponseSearch recent Threads posts
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Unifapi\\Sdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Unifapi\\Sdk\Api\ThreadsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$q = 'q_example'; // string | Search keyword.
$cursor = 'cursor_example'; // string
try {
$result = $apiInstance->threadsSearchRecentGet($q, $cursor);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ThreadsApi->threadsSearchRecentGet: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| q | string | Search keyword. | |
| cursor | string | [optional] |
\Unifapi\Sdk\Model\ThreadsSearchRecentGet200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
threadsSearchTopGet($q, $cursor): \Unifapi\\Sdk\Model\ThreadsSearchRecentGet200ResponseSearch top Threads posts
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Unifapi\\Sdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Unifapi\\Sdk\Api\ThreadsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$q = 'q_example'; // string | Search keyword.
$cursor = 'cursor_example'; // string
try {
$result = $apiInstance->threadsSearchTopGet($q, $cursor);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ThreadsApi->threadsSearchTopGet: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| q | string | Search keyword. | |
| cursor | string | [optional] |
\Unifapi\Sdk\Model\ThreadsSearchRecentGet200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
threadsUsersUsernameGet($username): \Unifapi\\Sdk\Model\ThreadsUsersUsernameGet200ResponseGet a Threads user profile by username
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Unifapi\\Sdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Unifapi\\Sdk\Api\ThreadsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$username = 'username_example'; // string
try {
$result = $apiInstance->threadsUsersUsernameGet($username);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ThreadsApi->threadsUsersUsernameGet: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string |
\Unifapi\Sdk\Model\ThreadsUsersUsernameGet200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
threadsUsersUsernamePostsGet($username, $cursor): \Unifapi\\Sdk\Model\ThreadsSearchRecentGet200ResponseList Threads posts authored by a user
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Unifapi\\Sdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Unifapi\\Sdk\Api\ThreadsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$username = 'username_example'; // string
$cursor = 'cursor_example'; // string
try {
$result = $apiInstance->threadsUsersUsernamePostsGet($username, $cursor);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ThreadsApi->threadsUsersUsernamePostsGet: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| cursor | string | [optional] |
\Unifapi\Sdk\Model\ThreadsSearchRecentGet200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
threadsUsersUsernameRepliesGet($username, $cursor): \Unifapi\\Sdk\Model\ThreadsSearchRecentGet200ResponseList Threads replies authored by a user
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Unifapi\\Sdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Unifapi\\Sdk\Api\ThreadsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$username = 'username_example'; // string
$cursor = 'cursor_example'; // string
try {
$result = $apiInstance->threadsUsersUsernameRepliesGet($username, $cursor);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ThreadsApi->threadsUsersUsernameRepliesGet: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| cursor | string | [optional] |
\Unifapi\Sdk\Model\ThreadsSearchRecentGet200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
threadsUsersUsernameRepostsGet($username, $cursor): \Unifapi\\Sdk\Model\ThreadsSearchRecentGet200ResponseList Threads reposts by a user
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Unifapi\\Sdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Unifapi\\Sdk\Api\ThreadsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$username = 'username_example'; // string
$cursor = 'cursor_example'; // string
try {
$result = $apiInstance->threadsUsersUsernameRepostsGet($username, $cursor);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ThreadsApi->threadsUsersUsernameRepostsGet: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| cursor | string | [optional] |
\Unifapi\Sdk\Model\ThreadsSearchRecentGet200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]