Skip to content

viswanathreddy/node-datafox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-datafox

DataFox API wrapper for Node

See https://datafox.co/docs/api/?javascript

Quickstart:

var datafox = require('datafox');
// input your client id, client secret, and redirect uri registered with DataFox
var conn = new datafox.Connection({
  clientId: "CLIENT ID",
  clientSecret: "CLIENT SECRET",
  redirectUri: "REDIRECT URI"
});
// authorize the user associated to your client
conn.authorize(function(err) {
  if (err) {
    console.log(error);
    return;
  }
  console.log('access token: ' + conn.accessToken);
  console.log('refresh token: ' + conn.refreshToken);
  console.log('access token expires: ' + conn.accessTokenExpires);
  conn.companies.list({url: 'datafox.co'}, function(err, json) {
    if (err) {
      console.error(err);
      return;
    }
    console.log('found ' + json.total_count + ' companies!');
  });
});

About

DataFox API wrapper for Node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published