with npm and Tuya?
Emit new event with the latest count of downloads for an npm package. See the documentation
Emit new event when a new version of an npm package is published. See the documentation
Emit new event when the specified device parameter is updated. See the documentation
Based on the user ID, query the list of homes where the specified user belongs. See the documentation
Send an instruction to the specified device. 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,
});
},
})