Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 2.03 KB

BalanceServiceApi.md

File metadata and controls

70 lines (43 loc) · 2.03 KB

Yahoo\BalanceServiceApi

All URIs are relative to https://ads-search.yahooapis.jp/api/v1

Method HTTP request Description
balanceServiceGetPost POST /BalanceService/get

balanceServiceGetPost

\Yahoo\Model\BalanceServiceGetResponse balanceServiceGetPost($balanceServiceSelector)

選択したアカウント残高に関する情報を取得します。
Returns account balance.

Example

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


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


$apiInstance = new Yahoo\Api\BalanceServiceApi(
    // 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
);
$balanceServiceSelector = new \Yahoo\Model\BalanceServiceSelector(); // \Yahoo\Model\BalanceServiceSelector | 

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

Parameters

Name Type Description Notes
balanceServiceSelector \Yahoo\Model\BalanceServiceSelector [optional]

Return type

\Yahoo\Model\BalanceServiceGetResponse

Authorization

oAuth

HTTP request headers

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

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