Skip to content

Instantly share code, notes, and snippets.

@rachelpw
rachelpw / gist:ad7dc942d811423916037275b3569f7f
Last active May 24, 2017
Sample CURL request to make an opportunity
View gist:ad7dc942d811423916037275b3569f7f
curl --request POST \
--header "Content-Type: application/json" \
--header "X-PW-AccessToken:TOKEN" \
--header "X-PW-Application:developer_api" \
--header "X-PW-UserEmail:EMAIL" \
https://api.prosperworks.com/developer_api/v1/opportunities \
--data '{
"name":"Test Opportunity",
"primary_contact_id":16885672,
"assignee_id":122867,
@rachelpw
rachelpw / Make a lead and person in node with ProsperWorks custom fields
Last active Apr 20, 2017
Download the request library by running 'node install request' and then in terminal run 'node [filename]' without quotes or brackets
View Make a lead and person in node with ProsperWorks custom fields
Custom fields I am using:
"custom_field_definition_id":75128 is a date custom field
"custom_field_definition_id":75129 is a number custom field
"custom_field_definition_id":73665 is a drop down custom field
"custom_field_definition_id":75492 is a checkbox custom field
"custom_field_definition_id":75493 is a URL custom field
Regarding the custom date field, the date should be presented to the API as your local timezone.
@rachelpw
rachelpw / Make a person in node
Created Nov 16, 2016
This shows you how to make a person using node. Download the request library by running 'node install request'
View Make a person in node
var request = require('request');
var formData = {
"name": "Hodor",
"emails": [{"email": "hodor@hodor.com","category": "work"}],
"tags": ["hodorhodor"],
}
var headers = {
"Content-Type": "application/json",