PHP code example of generative / genapi-sdk-php
1. Go to this page and download the library: Download generative/genapi-sdk-php 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/ */
generative / genapi-sdk-php example snippets
use GenAPI\Client;
$client = new Client();
$client->setAuthToken('yourBearerToken');
bash
composer
json
{
" ">=8.1",
"generative/genapi-sdk-php": "^1.0"
}
}