CRM Software Solutions Company
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Copper's API allows you to access and manipulate data in your Copper account
programmatically. With the API, you can create new records, update existing
records, delete records, and search for records. You can also perform bulk
operations, such as importing or exporting data.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
copper: {
type: "app",
app: "copper",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.prosperworks.com/developer_api/v1/account`,
headers: {
"X-PW-AccessToken": `${this.copper.$auth.api_key}`,
"X-PW-Application": `developer_api`,
"X-PW-UserEmail": `${this.copper.$auth.email}`,
"Content-Type": `application/json`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})