Skip to content

Latest commit

 

History

History
132 lines (82 loc) · 4.04 KB

AccountServiceApi.md

File metadata and controls

132 lines (82 loc) · 4.04 KB

Yahoo\AccountServiceApi

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

Method HTTP request Description
accountServiceGetPost POST /AccountService/get
accountServiceSetPost POST /AccountService/set

accountServiceGetPost

\Yahoo\Model\AccountServiceGetResponse accountServiceGetPost($accountServiceSelector)

アカウントに関する情報を取得します。契約状況などのフィルタ条件を設定することが可能です。
Returns the account information. Enable to set the filter condition, such as the account Type.

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\AccountServiceApi(
    // 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
);
$accountServiceSelector = new \Yahoo\Model\AccountServiceSelector(); // \Yahoo\Model\AccountServiceSelector | 

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

Parameters

Name Type Description Notes
accountServiceSelector \Yahoo\Model\AccountServiceSelector [optional]

Return type

\Yahoo\Model\AccountServiceGetResponse

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]

accountServiceSetPost

\Yahoo\Model\AccountServiceMutateResponse accountServiceSetPost($accountServiceOperation)

アカウントに関する情報を更新します。
Updates the information related to the account.

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\AccountServiceApi(
    // 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
);
$accountServiceOperation = new \Yahoo\Model\AccountServiceOperation(); // \Yahoo\Model\AccountServiceOperation | 

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

Parameters

Name Type Description Notes
accountServiceOperation \Yahoo\Model\AccountServiceOperation [optional]

Return type

\Yahoo\Model\AccountServiceMutateResponse

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]