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