PHP code example of newquery / hf-php-client

1. Go to this page and download the library: Download newquery/hf-php-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

newquery / hf-php-client example snippets




nt = new \HFClient\Client("YOUR_API_KEY");

$totalInbox = $client->getTotalInbox()

$user = $client->getUser(2602549);

$users = $client->getUsers([2602549, 2015410]);

$user = $client->inbox();

$thread = $client->getThread(6018226);

$post = $client->getPost(59077447);

$sociopaths = $client->getGroup(49);

$phpSubForum = $client->getForum(154);
 
composer