import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sage_crm: {
type: "app",
app: "sage_crm",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.sage_crm.$auth.server}/sdata/${this.sage_crm.$auth.install_name}j/sagecrm2/-/Person`,
headers: {
"content-type": `application/json`,
},
auth: {
username: `${this.sage_crm.$auth.username}`,
password: `${this.sage_crm.$auth.password}`,
},
})
},
})
Sage CRM uses API keys for authentication. When you connect your Sage CRM account, Pipedream securely stores the keys so you can easily authenticate to Sage CRM APIs in both code and no-code steps.