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

circonusapi2

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circonusapi2

Tiny library for interacting with Circonus' API v2

  • 0.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
3
Weekly downloads
 
Created
Source

node-circonusapi2

Node lib for interacting with v2 of the Circonus API

Exported methods

  • setup: inital setup function to give the API your auth token, app name, and options
  • get, post, put, delete: proxies for the various HTTP methods used for REST calls

Notes

  • callback functions take 3 args (code, error, body)
    • code: HTTP Response code, if null a non HTTP error occurred
    • error: Error message from API, null on 200 responses
    • body: Response body, i.e. the thing you probably want, if it wasn't null you will be handed an already parsed object

Usage

var api = require('circonusapi2'),
    auth_token = 'AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE',
    app_name = 'TEST APP';

api.setup(auth_token, app_name);
api.get("/check_bundle/12345", null, function(code, error, body) {
  if ( ! error ) {
    console.log(body)
  }
));

Options

  • protocol : "http" or "https", default https
  • apihost : default "api.circonus.com"
  • apiport : default 443
  • apipath : default "/v2/"

Keywords

FAQs

Package last updated on 02 Mar 2016

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