Skip to content

Latest commit

 

History

History
256 lines (160 loc) · 7.32 KB

FeedServiceApi.md

File metadata and controls

256 lines (160 loc) · 7.32 KB

Yahoo\FeedServiceApi

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

Method HTTP request Description
feedServiceAddPost POST /FeedService/add
feedServiceGetPost POST /FeedService/get
feedServiceRemovePost POST /FeedService/remove
feedServiceSetPost POST /FeedService/set

feedServiceAddPost

\Yahoo\Model\FeedServiceMutateResponse feedServiceAddPost($feedServiceOperation)

FeedItem情報を追加します。
Add the information related to Feed.

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\FeedServiceApi(
    // 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
);
$feedServiceOperation = new \Yahoo\Model\FeedServiceOperation(); // \Yahoo\Model\FeedServiceOperation | 

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

Parameters

Name Type Description Notes
feedServiceOperation \Yahoo\Model\FeedServiceOperation [optional]

Return type

\Yahoo\Model\FeedServiceMutateResponse

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]

feedServiceGetPost

\Yahoo\Model\FeedServiceGetResponse feedServiceGetPost($feedServiceSelector)

自動データ挿入のリスト情報を取得します。
Returns Feed information.

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\FeedServiceApi(
    // 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
);
$feedServiceSelector = new \Yahoo\Model\FeedServiceSelector(); // \Yahoo\Model\FeedServiceSelector | 

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

Parameters

Name Type Description Notes
feedServiceSelector \Yahoo\Model\FeedServiceSelector [optional]

Return type

\Yahoo\Model\FeedServiceGetResponse

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]

feedServiceRemovePost

\Yahoo\Model\FeedServiceMutateResponse feedServiceRemovePost($feedServiceOperation)

FeedItem情報を削除します。
Removes Feed information.

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\FeedServiceApi(
    // 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
);
$feedServiceOperation = new \Yahoo\Model\FeedServiceOperation(); // \Yahoo\Model\FeedServiceOperation | 

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

Parameters

Name Type Description Notes
feedServiceOperation \Yahoo\Model\FeedServiceOperation [optional]

Return type

\Yahoo\Model\FeedServiceMutateResponse

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]

feedServiceSetPost

\Yahoo\Model\FeedServiceMutateResponse feedServiceSetPost($feedServiceOperation)

FeedItem情報を更新します。
Updates Feed information.

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\FeedServiceApi(
    // 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
);
$feedServiceOperation = new \Yahoo\Model\FeedServiceOperation(); // \Yahoo\Model\FeedServiceOperation | 

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

Parameters

Name Type Description Notes
feedServiceOperation \Yahoo\Model\FeedServiceOperation [optional]

Return type

\Yahoo\Model\FeedServiceMutateResponse

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]