PHP code example of postboost / php-sdk
1. Go to this page and download the library: Download postboost/php-sdk 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/ */
postboost / php-sdk example snippets
use PostBoost\Client\Api\PostsApi;
use PostBoost\Client\Configuration;
$config = Configuration::getDefaultConfiguration()
->setAccessToken('YOUR_API_TOKEN');
$api = new PostsApi(new \GuzzleHttp\Client(), $config);
$posts = $api->listPosts('YOUR_WORKSPACE_UUID');
foreach ($posts as $post) {
echo $post->getUuid() . PHP_EOL;
}
bash
composer