with Flash (by Velora AI) and Autotask PSA?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
flash_by_velora_ai: {
type: "app",
app: "flash_by_velora_ai",
}
},
async run({steps, $}) {
const data = {
"feedback": `Pipedream.com is a great platform for automations! Highly recommended.`,
}
return await axios($, {
method: "post",
url: `https://flash-api.velora.ai/v1/api/add-feedback`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.flash_by_velora_ai.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
autotask_psa: {
type: "app",
app: "autotask_psa",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.autotask_psa.$auth.url}V1.0/ClientPortalUsers/query`,
headers: {
"UserName": `${this.autotask_psa.$auth.username}`,
"Secret": `${this.autotask_psa.$auth.password}`,
"ApiIntegrationCode": `${this.autotask_psa.$auth.api_integration_code}`,
},
params: {
search: `{
"filter": [
{
"op": "gt",
"field": "id",
"value": "1"
}
]
}`,
},
})
},
})