dwolla-swagger-php
is available on Packagist with source code available on our GitHub page. More information is available on the project's README.
composer require dwolla/dwollaswagger
composer install
Let's list some Customer
objects:
<?php
require('../path/to/vendor/autoload.php');
DwollaSwagger\Configuration::$username = 'API_KEY';
DwollaSwagger\Configuration::$password = 'API_SECRET';
// For Sandbox
$apiClient = new DwollaSwagger\ApiClient("https://api-sandbox.dwolla.com");
// For production
// $apiClient = new DwollaSwagger\ApiClient("https://api.dwolla.com");
$tokensApi = new DwollaSwagger\TokensApi($apiClient);
$appToken = $tokensApi->token();
DwollaSwagger\Configuration::$access_token = $appToken->access_token;
$customersApi = new DwollaSwagger\CustomersApi($apiClient);
$myCusties = $customersApi->_list(10);
?>
All funds transfers made using the Dwolla Platform are performed by a financial institution partner, and any funds held in a Dwolla Balance are held by a financial institution partner. Learn more about our financial institution partners.