Skip to content

Latest commit

 

History

History
430 lines (294 loc) · 12.2 KB

File metadata and controls

430 lines (294 loc) · 12.2 KB

Unifapi\Sdk\ThreadsApi

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()

threadsSearchProfilesGet($q): \Unifapi\\Sdk\Model\ThreadsSearchProfilesGet200Response

Search Threads users by keyword

Example

<?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;
}

Parameters

Name Type Description Notes
q string Search keyword.

Return type

\Unifapi\Sdk\Model\ThreadsSearchProfilesGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

threadsSearchRecentGet()

threadsSearchRecentGet($q, $cursor): \Unifapi\\Sdk\Model\ThreadsSearchRecentGet200Response

Search recent Threads posts

Example

<?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;
}

Parameters

Name Type Description Notes
q string Search keyword.
cursor string [optional]

Return type

\Unifapi\Sdk\Model\ThreadsSearchRecentGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

threadsSearchTopGet()

threadsSearchTopGet($q, $cursor): \Unifapi\\Sdk\Model\ThreadsSearchRecentGet200Response

Search top Threads posts

Example

<?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;
}

Parameters

Name Type Description Notes
q string Search keyword.
cursor string [optional]

Return type

\Unifapi\Sdk\Model\ThreadsSearchRecentGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

threadsUsersUsernameGet()

threadsUsersUsernameGet($username): \Unifapi\\Sdk\Model\ThreadsUsersUsernameGet200Response

Get a Threads user profile by username

Example

<?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;
}

Parameters

Name Type Description Notes
username string

Return type

\Unifapi\Sdk\Model\ThreadsUsersUsernameGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

threadsUsersUsernamePostsGet()

threadsUsersUsernamePostsGet($username, $cursor): \Unifapi\\Sdk\Model\ThreadsSearchRecentGet200Response

List Threads posts authored by a user

Example

<?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;
}

Parameters

Name Type Description Notes
username string
cursor string [optional]

Return type

\Unifapi\Sdk\Model\ThreadsSearchRecentGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

threadsUsersUsernameRepliesGet()

threadsUsersUsernameRepliesGet($username, $cursor): \Unifapi\\Sdk\Model\ThreadsSearchRecentGet200Response

List Threads replies authored by a user

Example

<?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;
}

Parameters

Name Type Description Notes
username string
cursor string [optional]

Return type

\Unifapi\Sdk\Model\ThreadsSearchRecentGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

threadsUsersUsernameRepostsGet()

threadsUsersUsernameRepostsGet($username, $cursor): \Unifapi\\Sdk\Model\ThreadsSearchRecentGet200Response

List Threads reposts by a user

Example

<?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;
}

Parameters

Name Type Description Notes
username string
cursor string [optional]

Return type

\Unifapi\Sdk\Model\ThreadsSearchRecentGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]