with Salesloft and Formatting?
Emit new event when a cadence is updated in Salesloft. See the documentation
Emit new event when an email is updated in Salesloft. See the documentation
Emit new event when a person is created in Salesloft. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
salesloft: {
type: "app",
app: "salesloft",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.salesloft.com/v2/me`,
headers: {
Authorization: `Bearer ${this.salesloft.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})