with Dreamhost and AvoSMS?
The Dreamhost API enables you to automate tasks related to your hosting account. This includes managing domains, DNS records, and email accounts, as well as accessing usage stats and billing information. With Pipedream, you can create serverless workflows that leverage the Dreamhost API to integrate with other services, respond to events, and automate your web hosting operations, all without managing infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dreamhost: {
type: "app",
app: "dreamhost",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.dreamhost.com/?key=${this.dreamhost.$auth.api_key}&cmd=dns-list_records`,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
avosms: {
type: "app",
app: "avosms",
}
},
async run({steps, $}) {
const data = {
"Id": `${this.avosms.$auth.id}`,
"Key": `${this.avosms.$auth.key}`,
}
return await axios($, {
method: "post",
url: `https://api.avosms.com/v1/account/balance`,
data,
})
},
})