Skip to content

Latest commit

 

History

History
192 lines (120 loc) · 5.8 KB

AuditLogServiceApi.md

File metadata and controls

192 lines (120 loc) · 5.8 KB

Yahoo\AuditLogServiceApi

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

Method HTTP request Description
auditLogServiceAddJobPost POST /AuditLogService/addJob
auditLogServiceDownloadPost POST /AuditLogService/download
auditLogServiceGetPost POST /AuditLogService/get

auditLogServiceAddJobPost

\Yahoo\Model\AuditLogServiceAddJobResponse auditLogServiceAddJobPost($auditLogServiceOperation)

操作履歴ファイルをダウンロードするためのジョブを登録します。
Add a job to download operation history data file.

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\AuditLogServiceApi(
    // 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
);
$auditLogServiceOperation = new \Yahoo\Model\AuditLogServiceOperation(); // \Yahoo\Model\AuditLogServiceOperation | 

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

Parameters

Name Type Description Notes
auditLogServiceOperation \Yahoo\Model\AuditLogServiceOperation [optional]

Return type

\Yahoo\Model\AuditLogServiceAddJobResponse

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]

auditLogServiceDownloadPost

\SplFileObject auditLogServiceDownloadPost($auditLogServiceDownloadSelector)

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\AuditLogServiceApi(
    // 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
);
$auditLogServiceDownloadSelector = new \Yahoo\Model\AuditLogServiceDownloadSelector(); // \Yahoo\Model\AuditLogServiceDownloadSelector | 

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

Parameters

Name Type Description Notes
auditLogServiceDownloadSelector \Yahoo\Model\AuditLogServiceDownloadSelector [optional]

Return type

\SplFileObject

Authorization

oAuth

HTTP request headers

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

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

auditLogServiceGetPost

\Yahoo\Model\AuditLogServiceGetResponse auditLogServiceGetPost($auditLogServiceSelector)

操作履歴のダウンロードURLを取得します。
Get the download URL for operation history data.

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\AuditLogServiceApi(
    // 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
);
$auditLogServiceSelector = new \Yahoo\Model\AuditLogServiceSelector(); // \Yahoo\Model\AuditLogServiceSelector | 

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

Parameters

Name Type Description Notes
auditLogServiceSelector \Yahoo\Model\AuditLogServiceSelector [optional]

Return type

\Yahoo\Model\AuditLogServiceGetResponse

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]