Catalog npm
PACKAGE EXPLORERView in registry

3cplusv2-sdk-js

npm

The 3cplus V2 js sdk

Versions collected20
Direct dependencies29From release 0.3.0
Last observed20 Oct, 19:32 UTC

README

Current package documentation

3Cplus SDK JS

A SDK used internally to contact the api and socket of the 3cplusv2 exposing a consistent and reusable interface.

Installation

yarn add 3cplusv2-sdk-js --save

Usage

import TcSDK from '3cplusv2-sdk-js'

// The constructor receives the same options as axios.create
const sdk = new TcSDK({
  baseURL: "https://app.3c.fluxoti.com"
})
.v1()
.withAuth('your_api_token_here')
.socket('https://socket.3c.fluxoti.com')

# Http Api
sdk.user().me()
.then((response) => console.log(response.data))
.catch((err) => console.log(err.response.data))

# Realtime integration
const socket = sdk.realtime().integration()

socket.on('connect', (event) => console.log('Listening for events'))
socket.on('integration', (event) => console.log(event))
socket.on('error', (err) => console.log(err))

All available api endpoints are under .vX(), separated by sections. Each method return an axios promise.

Please refer to the Api Documentation for more info about the conventions of the request parameters, responses and errors.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 20

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.0Registry latest11 Nov 202029
0.2.928 Aug 201927
0.2.827 Aug 201927
0.2.727 Aug 201927
0.2.61 Aug 201927
0.2.531 Jul 201927
0.2.424 May 201927
0.2.325 Apr 201927
0.2.225 Apr 201927
0.2.118 Mar 201927
0.2.04 Feb 201927
0.1.926 Oct 20189
0.1.824 Oct 20189
0.1.75 Oct 20189
0.1.621 Sept 20188
0.1.512 Sept 20188
0.1.415 Aug 20188
0.1.327 Jul 20188
0.1.224 Jul 20188
0.1.120 Jul 20187

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:dc802f31effeb39669cd95c7abfbd050b45470c8e607b13ebcf23fc4a32267a4