PHP code example of printful / php-api-sdk
1. Go to this page and download the library: Download printful/php-api-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/ */
printful / php-api-sdk example snippets
...
use Printful\PrintfulApiClient;
...
$client = PrintfulApiClient::createOauthClient('my-oauth-token')
...
use Printful\PrintfulApiClient;
...
$client = PrintfulApiClient::createLegacyStoreKeyClient('my-legacy-store-key')
$client = new PrintfulApiClient($storeKey)