with Workflow Max and Veriff?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
workflow_max: {
type: "app",
app: "workflow_max",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.workflowmax.com/me`,
headers: {
Authorization: `Bearer ${this.workflow_max.$auth.oauth_access_token}`,
"account_id": `${this.workflow_max.$auth.account_id}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
veriff: {
type: "app",
app: "veriff",
}
},
async run({steps, $}) {
const data = {
"verification": {
"callback": "https://veriff.me",
"vendorData": `${this.veriff.$auth.guid}`
}
}
return await axios($, {
method: "post",
url: `${this.veriff.$auth.api_url}/v1/sessions/`,
headers: {
"content-type": `application/json`,
"x-auth-client": `${this.veriff.$auth.api_key}`,
},
data,
})
},
})