mayorbyrne / deepcrawl

A DeepCrawl API wrapper for Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deepcrawl

Circle CI npm npm

A DeepCrawl API wrapper for Node.

Note that this library only supports DeepCrawl API version 2.0+

DeepCrawl 2.0 API is currently in private beta, so this library will not be finalized until the API is released publicly.

The DeepCrawl API requires authentication with an API key and returns a session token. The session token expires after 6 hours. This module assumes you are refreshing and storing the session token on a regular basis, and have a means of retrieving it.

var DeepCrawl = require('deepcrawl');

var dc = new DeepCrawl({
  accountId: '[your account id]',
  baseUrl: 'http://api.deepcrawl.com'
});

dc.api.projects.read({
  projectId: '4351'
})
.then(function(res) {
  console.log(res);
})
.catch(function(err) {
  console.log(err.stack);
});

About

A DeepCrawl API wrapper for Node


Languages

Language:JavaScript 100.0%