Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 1.54 KB

File metadata and controls

70 lines (46 loc) · 1.54 KB

SitesApi

All URIs are relative to https://up.go-adserver.com

Method HTTP request Description
apiV1SitesGet GET /api/v1/sites List the caller's websites.

apiV1SitesGet

ApiV1SitesGet200Response apiV1SitesGet()

List the caller's websites.

Example

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);

Parameters

This endpoint does not need any parameter.

Return type

ApiV1SitesGet200Response

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

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]