New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

classy-api-client

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

classy-api-client

Client for Classy API v2.

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
4
Weekly downloads
 
Created
Source

classy-api-client

Simple client for Classy API v2.

installation

$ npm install --save classy-api-client

usage

ApiClient.request(method, resource, postBody, authParams, callback)

const ApiClient = require('classy-api-client')({
  apiUrl: 'https://api.classy.org/2.0',
  oauthUrl: 'https://api.classy.org/',
  timeout: 10000,
  clientId: 'YOUR_ID'
  clientSecret: 'YOUR_SECRET'
});

// These keys are required for user-specific requests
const authParams = {
  grant_credentials: 'password',
  code: null,
  username: 'YOUR_USERNAME',
  password: 'YOUR_PASSWORD'
};

ApiClient.request('GET', '/me', null, authParams, (error, result) => {
  if (error) {
    console.log(error);
  } else {
    console.log(result);
  }
});

For non-user-specific requests, set authParams to null.

Keywords

FAQs

Package last updated on 16 Feb 2018

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