PHP code example of sdksio / plaid-apimatic-sdk
1. Go to this page and download the library: Download sdksio/plaid-apimatic-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 / plaid-apimatic-sdk example snippets
use ThePlaidApiLib\Logging\LoggingConfigurationBuilder;
use ThePlaidApiLib\Logging\RequestLoggingConfigurationBuilder;
use ThePlaidApiLib\Logging\ResponseLoggingConfigurationBuilder;
use Psr\Log\LogLevel;
use ThePlaidApiLib\Environment;
use ThePlaidApiLib\Authentication\ClientIdCredentialsBuilder;
use ThePlaidApiLib\Authentication\SecretCredentialsBuilder;
use ThePlaidApiLib\Authentication\PlaidVersionCredentialsBuilder;
use ThePlaidApiLib\ThePlaidApiClientBuilder;
$client = ThePlaidApiClientBuilder::init()
->clientIdCredentials(
ClientIdCredentialsBuilder::init(
'PLAID-CLIENT-ID'
)
)
->secretCredentials(
SecretCredentialsBuilder::init(
'PLAID-SECRET'
)
)
->plaidVersionCredentials(
PlaidVersionCredentialsBuilder::init(
'Plaid-Version'
)
)
->environment(Environment::SANDBOX)
->loggingConfiguration(
LoggingConfigurationBuilder::init()
->level(LogLevel::INFO)
->requestConfiguration(RequestLoggingConfigurationBuilder::init()->body(true))
->responseConfiguration(ResponseLoggingConfigurationBuilder::init()->headers(true))
)
->build();