Catalog npm
Back to packageRELEASE DETAILS

0.2.5

npm

3cplusv2-sdk-js

The 3cplus V2 js sdk

Published31 Jul 2019
Direct dependencies27
Transitive dependenciesNot calculated

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.

Declared dependencies 27

Native requirements
27 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
axios
Environment
{
  "local_name": "axios",
  "alias": false,
  "peer_metadata": null
}
^0.18.0runtime
jssip
Environment
{
  "local_name": "jssip",
  "alias": false,
  "peer_metadata": null
}
^3.3.6runtime
socket.io-client
Environment
{
  "local_name": "socket.io-client",
  "alias": false,
  "peer_metadata": null
}
^2.2.0runtime
@babel/cli
Environment
{
  "local_name": "@babel/cli",
  "alias": false,
  "peer_metadata": null
}
^7.0.0-beta.51development
@babel/core
Environment
{
  "local_name": "@babel/core",
  "alias": false,
  "peer_metadata": null
}
^7.0.0-beta.51development
@babel/plugin-proposal-object-rest-spread
Environment
{
  "local_name": "@babel/plugin-proposal-object-rest-spread",
  "alias": false,
  "peer_metadata": null
}
^7.3.1development
@babel/preset-env
Environment
{
  "local_name": "@babel/preset-env",
  "alias": false,
  "peer_metadata": null
}
^7.0.0-beta.51development
babel-eslint
Environment
{
  "local_name": "babel-eslint",
  "alias": false,
  "peer_metadata": null
}
^8.0.3development
babel-loader
Environment
{
  "local_name": "babel-loader",
  "alias": false,
  "peer_metadata": null
}
^8.0.0-beta.4development
babel-plugin-add-module-exports
Environment
{
  "local_name": "babel-plugin-add-module-exports",
  "alias": false,
  "peer_metadata": null
}
^0.2.1development
babel-plugin-istanbul
Environment
{
  "local_name": "babel-plugin-istanbul",
  "alias": false,
  "peer_metadata": null
}
^5.1.0development
babel-preset-env
Environment
{
  "local_name": "babel-preset-env",
  "alias": false,
  "peer_metadata": null
}
^7.0.0-beta.3development
babel-register
Environment
{
  "local_name": "babel-register",
  "alias": false,
  "peer_metadata": null
}
^7.0.0-beta.3development
cross-env
Environment
{
  "local_name": "cross-env",
  "alias": false,
  "peer_metadata": null
}
^5.2.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^5.0.1development
eslint-config-standard
Environment
{
  "local_name": "eslint-config-standard",
  "alias": false,
  "peer_metadata": null
}
^11.0.0development
eslint-loader
Environment
{
  "local_name": "eslint-loader",
  "alias": false,
  "peer_metadata": null
}
^2.0.0development
eslint-plugin-import
Environment
{
  "local_name": "eslint-plugin-import",
  "alias": false,
  "peer_metadata": null
}
^2.13.0development
eslint-plugin-node
Environment
{
  "local_name": "eslint-plugin-node",
  "alias": false,
  "peer_metadata": null
}
^6.0.1development
eslint-plugin-promise
Environment
{
  "local_name": "eslint-plugin-promise",
  "alias": false,
  "peer_metadata": null
}
^3.8.0development
eslint-plugin-standard
Environment
{
  "local_name": "eslint-plugin-standard",
  "alias": false,
  "peer_metadata": null
}
^3.1.0development
jsdom
Environment
{
  "local_name": "jsdom",
  "alias": false,
  "peer_metadata": null
}
11.11.0development
jsdom-global
Environment
{
  "local_name": "jsdom-global",
  "alias": false,
  "peer_metadata": null
}
3.0.2development
uglifyjs-webpack-plugin
Environment
{
  "local_name": "uglifyjs-webpack-plugin",
  "alias": false,
  "peer_metadata": null
}
^1.2.7development
webpack
Environment
{
  "local_name": "webpack",
  "alias": false,
  "peer_metadata": null
}
^4.12.2development
webpack-cli
Environment
{
  "local_name": "webpack-cli",
  "alias": false,
  "peer_metadata": null
}
^3.0.8development
yargs
Environment
{
  "local_name": "yargs",
  "alias": false,
  "peer_metadata": null
}
^10.0.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-XC06J15+wunVZtWdrtRvihlwsqN70tPi7T3n/I17DK5Fb2oFzwvLlX5jybpjWGMNhUhDRUtNOfZpFugoFPA7+Q==",
  "shasum": "410c52a8ae8694004d788dd107895dc62bc4de55",
  "tarball": "https://registry.npmjs.org/3cplusv2-sdk-js/-/3cplusv2-sdk-js-0.2.5.tgz",
  "fileCount": 16,
  "unpackedSize": 5145683,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQdbZCRA9TVsSAnZWagAAILwP/jn2idxGsB/QQ12FYrM0\nTvidyBUYHWxikuI8wvmLRQqUwBj1I0R36iJxMthVokBWuvRRnVHyIyudS9U1\nzEPlz9UnW9n1DNHKQpmRkuWwQ/SDGOfcPWb0NVMzBG7z0/j281eeQ8JqrxMc\nXyNrfKJ4UdL1RndH+c/uQHs2MKA5/zWN5wDE0aq1V8IhtVtbuix568MKFZNX\n4QRBseU9CoJ3Vcj2KbyxYjrBMW7y2F5UNky3+4b+8zU1V+ompDxM4GxSRloY\n343wGPXg9cNxskpiay6Sj808ZWAF+jn3A7c/sNgiLk4HNEjMKdCkU1AC2JbW\nWt21pB1erumEOW5ptRY0BMQGBT2y3zxTQ4L82ENo+yJ/AAfKhBpRn0Q4cxGJ\n3yPamzBqr/YyhYRJCXKrXtcf37Q943II9hy32NUKqV+6xTO8Nk3YJycY4q0T\n3yRGrxoWv1R2RDjmg4nVZdNCK4+Gzte3PVtayrx6crLXWkoOvjDge77Nvjx/\nVsBTZuymMRwgpd6FIkWk2mOS/r3h3GjIyGOD2Z4q/q1Bp1JAywX1oYT2be1+\nu79xdtt87bN+etsooBU1RvU5TYOrbXSUGM4BWYlem+nRzsCP+4ddAL/LI5Rq\nMD8ZGTPZRO1GOjJKNvX2dCKltVDc2n2/91POMMgNRoZoe4KDq334uy3CidFa\nEk/I\r\n=SGbz\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIAap3OsC79z1KTdBOKw8BFtuzHpEf4tw8Mh+W8WfmwvgAiEAuAfZaRVtzmGZHHfJDprLn2/kgDdKskXBnjws9UIJWzE="
    }
  ]
}

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_version:4e9f8e3fdd01d37460eba39abcf89c5212e5f5dcdc7a42fd11a917eb8a751fec

Other collected versions

0.3.011 Nov0.2.928 Aug0.2.827 Aug0.2.727 Aug0.2.61 Aug0.2.424 MayView all collected versions →