Skip to content

Latest commit

 

History

History
98 lines (68 loc) · 2.69 KB

DefaultApi.md

File metadata and controls

98 lines (68 loc) · 2.69 KB

BudgetData\ApiClient\DefaultApi

All URIs are relative to https://virtserver.swaggerhub.com/forevermatt/budget-data/0.1.3

Method HTTP request Description
accountPost POST /account Add an account
accountsGet GET /accounts List the current user's (financial) Accounts

accountPost

accountPost($body)

Add an account

Example

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

Parameters

Name Type Description Notes
body \BudgetData\ApiClient\Model\Account

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

accountsGet

\BudgetData\ApiClient\Model\Account[] accountsGet()

List the current user's (financial) Accounts

Example

<?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()
);

try {
    $result = $apiInstance->accountsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->accountsGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\BudgetData\ApiClient\Model\Account[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]