All URIs are relative to https://up.go-adserver.com
| Method | HTTP request | Description |
|---|---|---|
| apiV1SitesGet | GET /api/v1/sites | List the caller's websites. |
ApiV1SitesGet200Response apiV1SitesGet()
List the caller's websites.
import {
Configuration,
SitesApi,
} from 'goadserver-sdk';
import type { ApiV1SitesGetRequest } from 'goadserver-sdk';
async function example() {
console.log("🚀 Testing goadserver-sdk SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: apiKey
accessToken: "YOUR BEARER TOKEN",
});
const api = new SitesApi(config);
try {
const data = await api.apiV1SitesGet();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Site list (filtered by `resource_filter.site_ids` when set). | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]