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($id): \Freee\Accounting\Model\BankResponse
連携サービスの取得
<?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;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | 連携サービスID |
\Freee\Accounting\Model\BankResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getBanks($offset, $limit, $type): \Freee\Accounting\Model\InlineResponse200
連携サービス一覧の取得
<?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;
}
Name | Type | Description | Notes |
---|---|---|---|
offset | int | 取得レコードのオフセット (デフォルト: 0) | [optional] |
limit | int | 取得レコードの件数 (デフォルト: 20, 最小: 1, 最大: 500) | [optional] |
type | string | サービス種別 | [optional] |
\Freee\Accounting\Model\InlineResponse200
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]