with Short Menu and verifi.email?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
short_menu: {
type: "app",
app: "short_menu",
}
},
async run({steps, $}) {
const data = {
"destinationUrl": "https://pipedream.com/explore?via=go",
"domain": `${this.short_menu.$auth.custom_domain}`,
"tags": [
{
"name": "mytag"
}
]
}
return await axios($, {
method: "post",
url: `https://api.shortmenu.com/links`,
headers: {
"x-api-key": `${this.short_menu.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
verifi_email: {
type: "app",
app: "verifi_email",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.verifi.email/check`,
params: {
token: `${this.verifi_email.$auth.api_key}`,
},
})
},
})