with Sign.Plus and Mailrelay?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sign_plus: {
type: "app",
app: "sign_plus",
}
},
async run({steps, $}) {
const data = {
"sandbox": true
}
return await axios($, {
method: "post",
url: `https://restapi.sign.plus/v2/templates`,
headers: {
Authorization: `Bearer ${this.sign_plus.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})
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}`,
},
})
},
})