with Twenty and Relintex CRM?
Emit new event when a record is created, updated, or deleted.
Create, update, or delete a single record in Twenty. This action allows for dynamic handling of records based on specified action type. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
twenty: {
type: "app",
app: "twenty",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.twenty.com/rest/people`,
headers: {
Authorization: `Bearer ${this.twenty.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
relintex_crm: {
type: "app",
app: "relintex_crm",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://connect-test.relintex.net/api/v2/lead/list`,
headers: {
"accept": `application/json`,
},
auth: {
username: `${this.relintex_crm.$auth.username}`,
password: `${this.relintex_crm.$auth.password}`,
},
params: {
page_size: `100`,
page: `1`,
},
})
},
})