1. Go to this page and download the library: Download dealer-venom/passworks-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/ */
dealer-venom / passworks-php example snippets
assworks\Client;
// Instantiate the Passworks client
$api = new Passworks\Client('your api username', 'your api key');
// upload a asset (background image)
$api->createAsset('background', '/local-path-to-a-image/image.png');
// Fetch the asset list
$assets = $api->getAssets();
// Iterate through asset list
foreach($assets as $asset)
{
print_r($asset);
}