import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
short: {
type: "app",
app: "short",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.short.io/api/domains`,
headers: {
"Accept": `application/json`,
"Authorization": `${this.short.$auth.secret_key}`,
},
})
},
})
Short.io uses API keys for authentication. When you connect your Short.io account, Pipedream securely stores the keys so you can easily authenticate to Short.io APIs in both code and no-code steps.
Get your secret key here.