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

gochime

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gochime

Node.js wrapper for the GoChime API.

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gochime-api

GoChime API wrapper for Node.js. To use the API, you will first need to create an account at GoChime.

install

npm install gochime

test your api token

var gochime = require('gochime');
gochime.test('MY_API_TOKEN', function (err, res) {
  if (err) { throw err; }
  console.log(res); // should log { success: true }
});

use

var gochime = require('gochime');
gochime.use('MY_API_TOKEN');
gochime.addUsers('MY_AUDIENCE_ID', ['jim@jimbo.com'], 'email', function (err, res) {
  if (err) { throw err; }
  console.log(res); // should log { success: true }
});

add users of multiple types

var gochime = require('gochime');
gochime.use('MY_API_TOKEN');
gochime.addFormattedUsers('MY_AUDIENCE_ID', [{ email: 'jim@jimbo.com'}, { email: 'tim@jimbo.com'}, { phone: '5555555555'}, { fbuid: '585191676' }], function (err, res) {
  if (err) { throw err; }
  console.log(res); // should log { success: true }
});

run tests

First, create a conf.js file in the package's root directory. It should look like this:

module.exports = {
    token: "YOUR_TOKEN"
  , testAudience: "YOUR_AUDIENCE_ID"
}

Then run:

node test.js

The response should be:

{ success: true }
{ success: true }
{ success: true }

FAQs

Package last updated on 06 Aug 2013

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