Socket
Socket
Sign inDemoInstall

@classdo/classdo

Package Overview
Dependencies
407
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @classdo/classdo

ClassDo API client for browsers and NodeJS.


Version published
Weekly downloads
5
increased by150%
Maintainers
3
Install size
60.0 MB
Created
Weekly downloads
 

Changelog

Source

0.2.1 (2020-03-23)

Features

  • expose billing API on ClassDoAPIClient (6c9fecd)

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

Readme

Source

classdo.js

ClassDo API client for browsers and NodeJS.

CircleCI

Quick Start

Install via npm

npm install @classdo/classdo

Install via yarn

yarn add @classdo/classdo

Making requests

const { ClassDoAPIClient } = require('@classdo/classdo')
const client = new ClassDoAPIClient({ accessToken: 'xxxxxxxx' })
client.viewer().then(result => {
  // fetch viewer
  console.log(result)
})

Interface

All request apis accept request to fetch specified fields and related object according to our GraphQLSchema.

Like below.

client.viewer.get(['id'], {
  rooms: { fields: ['id', 'name'] } // request to fetch rooms also
}).then(v => {
  if (v.data) {
    console.log(v.data)             // viewer
    console.log(v.data.rooms.edges) // rooms
  }
})

You can see our GraphQL schema details here.

APIs

See this document.

License

MIT

Keywords

FAQs

Last updated on 23 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc