Read publisher websites.
All URIs are relative to https://up.go-adserver.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| apiV1SitesGet() | GET /api/v1/sites | List the caller's websites. |
apiV1SitesGet(): \GoAdServerApi\Model\ApiV1SitesGet200ResponseList the caller's websites.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (gas_live_<32 chars>) authorization: apiKey
$config = GoAdServerApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new GoAdServerApi\Api\SitesApi(
// 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
);
try {
$result = $apiInstance->apiV1SitesGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SitesApi->apiV1SitesGet: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\GoAdServerApi\Model\ApiV1SitesGet200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]