with Vend and Xverify?
The Vend API offers programmatic access to retail management features, enabling users to automate processes related to inventory, sales, products, customers, and more within their retail business. Through Pipedream, you can harness this API to create custom workflows that trigger on various events within Vend, process data, integrate with other apps, and automate actions to streamline retail operations, enhance customer engagement, and optimize sales strategies.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
vend: {
type: "app",
app: "vend",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.vend.$auth.domain_prefix}.vendhq.com/api/2.0/security_events`,
headers: {
Authorization: `Bearer ${this.vend.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
xverify: {
type: "app",
app: "xverify",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.xverify.com/v2/ev`,
params: {
api_key: `${this.xverify.$auth.api_key}`,
domain: `${this.xverify.$auth.domain}`,
email: `test@test.com`,
},
})
},
})