Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This shows you how to make a person using node. Download the request library by running 'node install request'
var request = require('request');
var formData = {
"name": "Hodor",
"emails": [{"email": "","category": "work"}],
"tags": ["hodorhodor"],
var headers = {
"Content-Type": "application/json",
"X-PW-AccessToken" : "YOURAPIKEY",
"X-PW-Application" : "developer_api",
"X-PW-UserEmail" : "YOUREMAIL",
var opts = {
url: '',
method: "post",
headers: headers,
json: true,
body: formData

This comment has been minimized.

Copy link

ryanhssn commented Mar 30, 2017

Error: Cannot find module 'request'

Trying to figuring out this request module issue but unfortunately no luck. Is there any other way to make a lead in prosperworks with nodeJs other than request module? or can you please help me figuring out this issue. I have a form, I just want to create lead on form submit. Any help would be appreciated. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.