with Lead Identity Check and Epic Games?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lead_identity_check: {
type: "app",
app: "lead_identity_check",
}
},
async run({steps, $}) {
const data = {
"Firstname": `Sergio`,
"Lastname": `Wong`,
"Email": `sergio@pipedream.com`,
}
return await axios($, {
method: "post",
url: `https://leadidentitycheck-node.vercel.app/main/lic/v1`,
headers: {
" x-lic-key": `${this.lead_identity_check.$auth.api_key}`,
"filterkey": `${this.lead_identity_check.$auth.filter_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
epic_games: {
type: "app",
app: "epic_games",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.epicgames.dev/epic/id/v2/accounts`,
headers: {
Authorization: `Bearer ${this.epic_games.$auth.oauth_access_token}`,
},
params: {
accountId: `your_account_id`,
},
})
},
})