with MojoTxt and IONOS Hosting Services?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mojotxt: {
type: "app",
app: "mojotxt",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.mojotxt.com/api/v1/phoneNumbers/list`,
auth: {
username: `${this.mojotxt.$auth.api_username}`,
password: `${this.mojotxt.$auth.api_password}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ionos_hosting_services: {
type: "app",
app: "ionos_hosting_services",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hosting.ionos.com/dns/v1/zones`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.ionos_hosting_services.$auth.public_prefix}.${this.ionos_hosting_services.$auth.secret}`,
"cookie": `0b04270753322c986927738ac2b6c0d8=f0bdc4e5976f6d806c765101692526bc; DPX=v1:SBQ1uQuBY/:PKIEBpGz:68843834:de`,
},
})
},
})