Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Latest commit

 

History

History
129 lines (88 loc) · 3.52 KB

BanksApi.md

File metadata and controls

129 lines (88 loc) · 3.52 KB

Freee\Accounting\BanksApi

All URIs are relative to https://api.freee.co.jp.

Method HTTP request Description
getBank() GET /api/1/banks/{id} 連携サービスの取得
getBanks() GET /api/1/banks 連携サービス一覧の取得

getBank()

getBank($id): \Freee\Accounting\Model\BankResponse

連携サービスの取得

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: oauth2
$config = Freee\Accounting\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Freee\Accounting\Api\BanksApi(
    // 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(),
    $config
);
$id = 56; // int | 連携サービスID

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

Parameters

Name Type Description Notes
id int 連携サービスID

Return type

\Freee\Accounting\Model\BankResponse

Authorization

oauth2

HTTP request headers

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

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

getBanks()

getBanks($offset, $limit, $type): \Freee\Accounting\Model\InlineResponse200

連携サービス一覧の取得

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: oauth2
$config = Freee\Accounting\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Freee\Accounting\Api\BanksApi(
    // 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(),
    $config
);
$offset = 56; // int | 取得レコードのオフセット (デフォルト: 0)
$limit = 56; // int | 取得レコードの件数 (デフォルト: 20, 最小: 1, 最大: 500)
$type = 'type_example'; // string | サービス種別

try {
    $result = $apiInstance->getBanks($offset, $limit, $type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BanksApi->getBanks: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
offset int 取得レコードのオフセット (デフォルト: 0) [optional]
limit int 取得レコードの件数 (デフォルト: 20, 最小: 1, 最大: 500) [optional]
type string サービス種別 [optional]

Return type

\Freee\Accounting\Model\InlineResponse200

Authorization

oauth2

HTTP request headers

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

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