Socket
Socket
Sign inDemoInstall

contacts-api-node

Package Overview
Dependencies
53
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    contacts-api-node

NodeJS SDK for Contacts+ Contacts API


Version published
Weekly downloads
10
increased by400%
Maintainers
2
Created
Weekly downloads
 

Readme

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

Last updated on 08 Mar 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc