PHP code example of sdksio / apimatic-greendot-sdk
1. Go to this page and download the library: Download sdksio/apimatic-greendot-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/ */
sdksio / apimatic-greendot-sdk example snippets
use GdBosV1Lib\Logging\LoggingConfigurationBuilder;
use GdBosV1Lib\Logging\RequestLoggingConfigurationBuilder;
use GdBosV1Lib\Logging\ResponseLoggingConfigurationBuilder;
use Psr\Log\LogLevel;
use GdBosV1Lib\Environment;
use GdBosV1Lib\Authentication\CustomHeaderAuthenticationCredentialsBuilder;
use GdBosV1Lib\GdBosV1ClientBuilder;
$client = GdBosV1ClientBuilder::init()
->customHeaderAuthenticationCredentials(
CustomHeaderAuthenticationCredentialsBuilder::init(
'Authorization'
)
)
->environment(Environment::PRODUCTION)
->defaultHost('www.example.com')
->loggingConfiguration(
LoggingConfigurationBuilder::init()
->level(LogLevel::INFO)
->requestConfiguration(RequestLoggingConfigurationBuilder::init()->body(true))
->responseConfiguration(ResponseLoggingConfigurationBuilder::init()->headers(true))
)
->build();