with Exact Mails and Synthflow?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
exact_mails: {
type: "app",
app: "exact_mails",
}
},
async run({steps, $}) {
const data = {
"linkedin_url": `https://www.linkedin.com/in/janesmith/`,
}
return await axios($, {
method: "post",
url: `https://api.exactmails.com/api/v1/email/find-linkedin-email`,
auth: {
username: `${this.exact_mails.$auth.username}`,
password: `${this.exact_mails.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
synthflow: {
type: "app",
app: "synthflow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.synthflow.ai/v2/assistants`,
headers: {
Authorization: `Bearer ${this.synthflow.$auth.api_key}`,
},
})
},
})