JSPM

channelape-sdk

0.1.0-develop.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q71666F
  • License Apache-2.0

A client for interacting with ChannelApe's API

Package Exports

  • channelape-sdk

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (channelape-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ChannelApe TypeScript SDK

TypeScript SDK for the ChannelApe REST API

Service Develop Master
CI Status Build Status Build Status
Quality Gate Quality Gate Quality Gate
Coverage Coverage Coverage

Features

Getting Started

Create the channel api client with your credentials.

const clientConfiguration = new ClientConfigurationBuilder()
  .setUsername('johndoe123@test.com').setPassword('my_pass123#4').build();
const channelApeClient = new ChannelApeClient(clientConfiguration);

or if you have your sessionId:

const clientConfiguration = new ClientConfigurationBuilder()
  .setSessionId('e7fecb82-61f7-498e-a358-aa21eb0cd5e8').build();
const channelApeClient = new ChannelApeClient(clientConfiguration);

The channelape sdk is asynchronous and all functions return promises.

Sessions

A session is created when instantiating the client. It can be retrieved for later use.

channelapeClient.getSession()
  .then((session: Session) => {
    // do what you need to do with session data here
  });