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