Skip to content

Instantly share code, notes, and snippets.

@rachelpw
rachelpw / gist:ad7dc942d811423916037275b3569f7f
Last active May 24, 2017 19:02
Sample CURL request to make an opportunity
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 April 20, 2017 19:30
Download the request library by running 'node install request' and then in terminal run 'node [filename]' without quotes or brackets
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 November 16, 2016 03:47
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": "hodor@hodor.com","category": "work"}],
"tags": ["hodorhodor"],
}
var headers = {
"Content-Type": "application/json",