Options
All
  • Public
  • Public/Protected
  • All
Menu

Client to be used with dc-management-sdk-js

You must have enabled your extension in Dynamic Content for this service to work

import { init } from 'dc-extensions-sdk';
import { DynamicContent } from "dc-management-sdk-js";

const dcExtension = await init();
const dcManagement = new DynamicContent(
 {},
 {},
 dcExtension.client
);

const hubs = await dcManagement.hubs.list();

Hierarchy

  • HttpClient

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

  • new HttpClient(connection: ClientConnection): HttpClient

Properties

Private connection

connection: ClientConnection

Methods

request

  • request<Resource>(config: HttpRequest): Promise<HttpResponse<Resource | HttpErrors>>
  • Type parameters

    • Resource = string | Record<string, unknown>

    Parameters

    • config: HttpRequest

    Returns Promise<HttpResponse<Resource | HttpErrors>>

Object literals

Private DEFAULT_ERROR

DEFAULT_ERROR: object

status

status: number = 403

data

data: object

errors

errors: { code: string; level: string; message: string }[] = [{code: 'UNKNOWN',level: 'ERROR',message: 'Unknown error',},]

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Inherited property
  • Protected property

Generated using TypeDoc