with Needle and Salesloft?
Search a collection for relevant data chunks based on a query. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
needle: {
type: "app",
app: "needle",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://needle-ai.com/api/v1/collections`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.needle.$auth.api_key}`,
},
})
},
})
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`,
},
})
},
})