API for persisting budget data
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 0.2.0
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
PHP 7.3 and later
To install the bindings via Composer, run the following command:
composer require forevermatt/budget-data-api-php-client
Download the files and include autoload.php
:
require_once('/path/to/budget-data-api-php-client/vendor/autoload.php');
To run the unit tests:
composer install
vendor/bin/behat .
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new BudgetData\ApiClient\Api\DefaultApi(
// 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()
);
$body = new \BudgetData\ApiClient\Model\Account(); // \BudgetData\ApiClient\Model\Account |
try {
$apiInstance->accountPost($body);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->accountPost: ', $e->getMessage(), PHP_EOL;
}
$apiInstance = new BudgetData\ApiClient\Api\DefaultApi(
// 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()
);
try {
$result = $apiInstance->accountsGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->accountsGet: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to https://virtserver.swaggerhub.com/forevermatt/budget-data/0.1.3
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | accountPost | POST /account | Add an account |
DefaultApi | accountsGet | GET /accounts | List the current user's (financial) Accounts |
All endpoints do not require authorization.