PHP code example of swichers / acsf-client
1. Go to this page and download the library: Download swichers/acsf-client 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/ */
swichers / acsf-client example snippets
declare(strict_types=1);
tFactory;
$base_config = [
'username' => 'example.user',
'api_key' => 'example.key',
'site_group' => 'example.group',
'environment' => 'live',
];
// There are multiple ways to create a client, including from
// environment variables (recommended). View the ClientFactory
// class for details.
$client = ClientFactory::createFromArray($base_config);
// Check the service status.
print_r($client->getAction('Status')->ping());