import unirest from "unirest";
export default defineComponent({
props: {
privatebin: {
type: "app",
app: "privatebin",
}
},
async run({ steps, $ }) {
const response = await unirest('GET', `${this.privatebin.$auth.api_url}?${this.privatebin.$auth.paste_id}`)
.headers({
'X-Requested-With': 'JSONHttpRequest',
'Cookie': 'lang=en; template=bootstrap5'
});
return response.body
},
})PrivateBin uses API keys for authentication. When you connect your PrivateBin account, Pipedream securely stores the keys so you can easily authenticate to PrivateBin APIs in both code and no-code steps.