forevermatt/budget-data-api-php-client

0.3.0 2021-04-15 22:56 UTC

This package is auto-updated.

Last update: 2024-11-16 06:49:59 UTC


README

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

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author