Client wrapper for Node.js integration with RDStation.
Install
$ npm install --save rdstation-node-client
Usage
First, initialize the resource
Currently, there are Services
, Conversions
and Leads modules.
var rdclient = require('rdstation-node-client');
var services = new rdclient.Services('your_private_token');
var conversions = new rdclient.Conversions('your_token');
var leads = new rdclient.Leads('your_private_token');
Services
Set a deal as won
var value = 12000;var email = 'email@example.com'; services ;
Set a deal as lost
var reason = 'Customer chose competitor product';var leadId = 9999; services ;
Conversions
Create a new conversion
var identifier = 'action-name'; conversions;
Leads
Change a lead stage to Lead
var email = 'email@example.com';var opportunity = false; leads;
Change a lead stage to Lead Qualified
var email = 'email@example.com';var opportunity = false; leads;
Change a lead stage to Client
var email = 'email@example.com';var opportunity = false; leads;
Future development
Currently, this wrapper helps to:
- Make the request "Close a deal and mark a deal as lost" described in this article.
- Make the request to create a new conversion as described in this article.
- Make the request to change a lead stage described in this article.
There are few more possible actions with RD Station API as described here.
License
MIT © Agendor