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

contacts-api-node

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contacts-api-node

NodeJS SDK for Contacts+ Contacts API

  • 4.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Build Status npm version Node version

IMPORTANT: This SDK should be used server-side only. Using it in a browser would expose Client Secret

Looking for FullContact Enrich APIs? there is a new SDK for that: https://github.com/fullcontact/fullcontact-node-sdk

Installation

npm install contacts-api-node --save

Documentation

API Documentation can be found at https://www.contactsplus.com/developers/contacts-api

JSDocs can be found in docs.md

Usage

Configuration

var contactsplus = require('contacts-api-node')({
	clientId: '<Client ID>', //for v3 APIs. See: https://app.contactsplus.com/apps
	clientSecret: '<Client Secret>',
	redirectUri: '<Redirect URI>',
	scope: 'list,of,scopes',
	userAgent: '<AppName/Version>'
});
OAuth

All OAuth methods can be found under the oauth property on the client.

Supported Methods:
  • getAuthorizationUrl()
  • exchangeAuthCode(code)
  • exchangeRefreshToken(refresh_token)
var url = contactsplus.oauth.getAuthorizationUrl();
Contacts APIs

All Contacts APIs can be found under the contacts property on the client.

contactsplus.contacts.account.get(accessToken)
	.then(res => {
		//2xx response
	})
	.catch(res => {
		//non-2xx response
	});
Tests

To run tests:

npm test

To get coverage report:

npm run coverage

Keywords

FAQs

Package last updated on 08 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