import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dealcloud: {
type: "app",
app: "dealcloud",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.dealcloud.$auth.host}/api/rest/v4/schema/entrytypes`,
headers: {
Authorization: `Bearer ${this.dealcloud.$auth.oauth_access_token}`,
},
})
},
})
Creates a new record (entry) in DealCloud. See the documentation
Deletes one or more records (entries) from DealCloud. See the documentation
Retrieves one or more records (entries) from DealCloud. See the documentation
DealCloud uses OAuth authentication. When you connect your DealCloud account, Pipedream will open a popup window where you can sign into DealCloud and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any DealCloud API.
Pipedream requests the following authorization scopes when you connect your account:
dataPOST{{custom_fields.base_url}}/api/rest/v1/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/jsonclient_id={{custom_fields.client_id}}&api_key={{custom_fields.api_Key}}&grant_type=client_credentialsPOST{{custom_fields.base_url}}/api/rest/v1/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/jsonclient_id={{custom_fields.client_id}}&client_secret={{custom_fields.api_Key}}&grant_type=client_credentials