PHP code example of codebyray / carlistapi-php-sdk
1. Go to this page and download the library: Download codebyray/carlistapi-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/ */
codebyray / carlistapi-php-sdk example snippets
use CodebyRay\CarListApi\CarListApi;
$carList = new CarListApi(
token: 'your-api-token'
);
use CodebyRay\CarListApi\Configuration;
$config = new Configuration(
token: 'your-api-token',
baseUrl: 'https://carlistapi.com/api',
version: 'v1',
timeout: 15,
connectTimeout: 5,
retryTimes: 2,
retrySleepMs: 200,
);
$carList = new CarListApi($config);