This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "success": true, | |
| "data": [ | |
| { | |
| "id": 1216, | |
| "company_id": 893743, | |
| "user_id": 1236582, | |
| "done": false, | |
| "type": "call", | |
| "reference_type": "none", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "success": true, | |
| "data": null, | |
| "additional_data": { | |
| "pagination": { | |
| "start": 0, | |
| "limit": 100, | |
| "more_items_in_collection": false | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const request = require('request-promise'); | |
| const moment = require('moment'); | |
| moment().format(); | |
| var API_KEY = process.env.API_KEY; | |
| var urls = { deals: 'https://api.pipedrive.com/v1/deals?start=0&api_token=' + API_KEY, | |
| activities: 'https://api.pipedrive.com/v1/activities?start=0&api_token=' + API_KEY }; | |
| function getIt (url) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function (API_KEY, deals) { | |
| const request = require('request-promise'); | |
| var junk = 'nothing'; | |
| var dealsObj = {}; | |
| function getIt (url) { | |
| return request(url).then(function (body) { | |
| return JSON.parse(body).data; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function (API_KEY, deals) { | |
| const request = require('request-promise'); | |
| var junk = 'nothing'; | |
| var dealsObj = {}; | |
| function getIt (url) { | |
| return request(url).then(function (body) { | |
| return JSON.parse(body).data; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function (API_KEY, deals) { | |
| const request = require('request-promise'); | |
| var junk = 'nothing'; | |
| var dealsObj = {}; | |
| function getIt (url) { | |
| return request(url).then(function (body) { | |
| return JSON.parse(body).data; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function (API_KEY, deals, activities, app, type, pbl, address, test){ | |
| const request = require('request-promise'); | |
| const moment = require('moment'); | |
| moment().format(); | |
| var soon = {}; | |
| var soonPart = {}; | |
| var have = {}; | |
| deals.map(function(deal) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function (API_KEY, deals, activities, app, type, pbl, address, test){ | |
| const request = require('request-promise'); | |
| const moment = require('moment'); | |
| moment().format(); | |
| var soon = {}; | |
| var soonPart = {}; | |
| var later = {}; | |
| var laterPart = {}; | |
| var have = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const request = require('request-promise'); | |
| //const set4506T = require('./4506T.js'); | |
| const set4506T = require('./new4506T.js'); | |
| // const set1003 = require('./1003.js'); | |
| const set1003 = require('./new1003.js'); | |
| const setBCert = require('./bCert.js'); | |
| const setW2 = require('./w2.js'); | |
| const setPaystubs = require('./paystubs.js'); | |
| const set1040 = require('./1040.js'); | |
| const setPBL = require('./pbl.js'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function (API_KEY, deals, activities, app, type, pbl, address, test){ | |
| const request = require('request-promise'); | |
| const moment = require('moment'); | |
| // Basic reimpl of Bluebird's Promise.try | |
| const promiseTry = function (syncFn) { return new Promise(function (resolve) { return resolve(syncFn()); }); }; | |
| moment().format(); | |
| var soon = {}; | |
| var soonPart = {}; | |
| var later = {}; |