with Tuya and BenchmarkONE?
Emit new event when a webhook automation step is triggered in BenchmarkONE.
Adds a note to a BenchmarkONE contact. See the documentation
Adds tags to a contact. If the contact does not exist, it will be created first. See the documentation
Creates a new contact in BenchmarkONE. See the documentation
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,
});
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
benchmarkone: {
type: "app",
app: "benchmarkone",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hatchbuck.com/api/v1/settings/source`,
params: {
api_key: `${this.benchmarkone.$auth.api_key}`,
},
})
},
})