@channelape-inc/channelape-typescript-sdk
A client for interacting with ChannelApe's API
Last updated 2 years ago by channelape .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @channelape-inc/channelape-typescript-sdk 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.0-alpha                                ...           latest (2 years ago)

1 Versions

  • 0.1.0-alpha                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (4)
Dev Dependencies (20)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |