with Adafruit IO and Adyntel?
Retrieve all Google ads for a given company domain. See the documentation
Adafruit IO is an API designed for building Internet of Things (IoT) applications. It offers a means to store, share, and manage data from your IoT devices. With Adafruit IO, you can create dashboards to display real-time data, trigger events based on data, and even control outputs. It's a versatile platform that's especially friendly for those getting started with IoT.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
adafruit_io: {
type: "app",
app: "adafruit_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://io.adafruit.com/api/v2/user`,
headers: {
"X-AIO-Key": `${this.adafruit_io.$auth.active_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
adyntel: {
type: "app",
app: "adyntel",
}
},
async run({steps, $}) {
const data = {
"api_key": `${this.adyntel.$auth.api_key}`,
"email": `${this.adyntel.$auth.username}`,
"company_domain": `pipedream.com`,
}
return await axios($, {
method: "post",
url: `https://api.adyntel.com/google`,
data,
})
},
})