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(config: HttpRequest): Promise<HttpResponse>

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