PHP code example of rewards-wise / finverse-sdk-php
1. Go to this page and download the library: Download rewards-wise/finverse-sdk-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/ */
rewards-wise / finverse-sdk-php example snippets
Configure OAuth2 access token for authorization: Oauth2
$config = FinversePhp\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new FinversePhp\Api\CustomerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$mandate_id = 'mandate_id_example'; // string | The mandate_id that is being authorized
$authorize_mandate_request = new \FinversePhp\Model\AuthorizeMandateRequest(); // \FinversePhp\Model\AuthorizeMandateRequest | request body for authorizing a mandate
try {
$result = $apiInstance->authorizeMandate($mandate_id, $authorize_mandate_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerApi->authorizeMandate: ', $e->getMessage(), PHP_EOL;
}