1. Go to this page and download the library: Download codeswholesale-v3/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/ */
codeswholesale-v3 / sdk example snippets
use CodesWholesaleApi\Api\Client;
use CodesWholesaleApi\Config\Config;
use CodesWholesaleApi\Sdk\Sdk;
use CodesWholesaleApi\Storage\OAuth2\TokenSessionOAuthStorage;
$oauthStorage = new TokenSessionOAuthStorage();
$client = new Client(
Config::live(),
$oauthStorage,
'CLIENT_ID',
'CLIENT_SECRET'
);
$sdk = new Sdk($client);