with PortaBilling and Mailrelay?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
portabilling: {
type: "app",
app: "portabilling",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `${this.portabilling.$auth.api_url}/rest/Env/get_env_info`,
headers: {
Authorization: `Bearer ${this.portabilling.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailrelay: {
type: "app",
app: "mailrelay",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.mailrelay.$auth.domain}/api/v1/package`,
headers: {
"x-auth-token": `${this.mailrelay.$auth.api_key}`,
},
})
},
})