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,
})
},
})
Short Menu uses API keys for authentication. When you connect your Short Menu account, Pipedream securely stores the keys so you can easily authenticate to Short Menu APIs in both code and no-code steps.