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`,
},
})
},
})
Relintex CRM uses API keys for authentication. When you connect your Relintex CRM account, Pipedream securely stores the keys so you can easily authenticate to Relintex CRM APIs in both code and no-code steps.
Relintex CRM requires their users enter their Relintex CRM username and password in order to connect to their API. For more info, refer to Relintex CRM’s documentation.
Pipedream recommends using a strong and unique password for your Relintex CRM account.