import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
shortpen: {
type: "app",
app: "shortpen",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://api.shortpen.com/v1/me`,
headers: {
Authorization: `Bearer ${this.shortpen.$auth.api_key}`,
},
})
},
})
ShortPen uses API keys for authentication. When you connect your ShortPen account, Pipedream securely stores the keys so you can easily authenticate to ShortPen APIs in both code and no-code steps.