with Bolt IoT and Microbilt Developer?
The Bolt IoT API lets you harness the power of your Bolt IoT devices, enabling you to control and monitor them remotely through Pipedream. With Pipedream's serverless platform, you can create automated workflows that trigger on specific events, process data, and integrate with countless other services. Whether you're aiming to automate your smart home, set up alerts, or manage device data, Pipedream makes it straightforward to connect Bolt IoT with a world of apps and services for a seamless automation experience.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bolt_iot: {
type: "app",
app: "bolt_iot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://cloud.boltiot.com/remote/${this.bolt_iot.$auth.api_key}/getDevices`,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microbilt_developer: {
type: "app",
app: "microbilt_developer",
}
},
async run({steps, $}) {
const data = {
"Address": {
"Addr1": "1640 Airport Road #115",
"City": "Kennesaw",
"State": "GA",
"Zip": "30144"
}
}
return await axios($, {
method: "post",
url: `https://${this.microbilt_developer.$auth.environment}.microbilt.com/AddressStandardization`,
headers: {
Authorization: `Bearer ${this.microbilt_developer.$auth.oauth_access_token}`,
"content-type": `application/json`,
"accept": `application/json`,
},
data,
})
},
})