Skip to content

forevermatt/budget-data-api-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

budget-data-api-php-client

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

Requirements

PHP 7.3 and later

Installation & Usage

Composer

To install the bindings via Composer, run the following command:

composer require forevermatt/budget-data-api-php-client

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/budget-data-api-php-client/vendor/autoload.php');

Tests

To run the unit tests:

composer install
vendor/bin/behat .

Getting Started

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;
}
?>

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author