Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@classdo/classdo

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@classdo/classdo

ClassDo API client for browsers and NodeJS.

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
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

Package last updated on 23 Mar 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc