For more information, please visit https://www.hydrogenplatform.com/no-code
PHP 5.5 and later
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
Please first follow the installation instructions. Then make sure you use the proper base URL:
Follow steps to verify the base URL path:
- Go to Configuration file located under lib folder.
- Search for $host and change/verify the URL according to the environment.
Sandbox Base URL https://sandbox.hydrogenplatform.com
Production Base URL https://api.hydrogenplatform.com
Now you are ready to execute the following PHP code:
<?php
require_once('./vendor/autoload.php');
$apiInstance = new com\hydrogen\admin\Api\AutoGenerateAppTokenApi(
new GuzzleHttp\Client()
);
$attribMap = array (
array(
"name" => "public-key",
"value" => "****"
),
array(
"name" => "client-id",
"value" => "****"
),
array(
"name" => "card-id",
"value" => "****"
)
);
$appTokenConfig['appName'] = array(array('app_name'=>'pfm_cash_flow', 'auth_type'=>'password_credentials'))
$appTokenConfig['basePath'] = \com\hydrogen\admin\Environment::PRODUCTION;
$appTokenConfig['userAccessToken'] = '';
$appTokenConfig['attribMap'] = $attribMap;
$appTokenConfig['isEmbed'] = true;
$appTokenConfig['isCredsPassed'] = true;
$appTokenConfig['clientId'] = '****';
$appTokenConfig['clientSecret'] = '****';
$appTokenConfig['username'] = "****";
$appTokenConfig['password'] = "****";
$appTokenConfig['auth_type'] = 'client_credentials';
try {
$result = $apiInstance->getAppTokenUsingGET($appTokenConfig);
print_r($result);
} catch (Exception $e) {
print_r($e->getMessage());
}
?>
The Hydrogen Technology Corporation
https://www.hydrogenplatform.com
Generated using Swagger Codegen