with Postmaster+ and IONOS Hosting Services?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
postmaster: {
type: "app",
app: "postmaster",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://postmasterplus.app/api/v1/intelligence/single-emails/${this.postmaster.$auth.email}`,
headers: {
Authorization: `Bearer ${this.postmaster.$auth.api_token}`,
"accept": `application/json`,
},
})
},
})
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`,
},
})
},
})