with Xverify and Tuya?
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`,
},
})
},
})
import { TuyaContext } from '@tuya/tuya-connector-nodejs';
export default defineComponent({
props: {
tuya: {
type: "app",
app: "tuya",
}
},
async run({steps, $}) {
const tuya = new TuyaContext({
baseUrl: `${this.tuya.$auth.base_url}`,
accessKey: `${this.tuya.$auth.client_id}`,
secretKey: `${this.tuya.$auth.client_secret}`,
});
return await tuya.user.users({
last_row_key: '',
page_size: 20,
});
},
})