import { PinataSDK } from "pinata";
export default defineComponent({
props: {
pinata: {
type: "app",
app: "pinata",
}
},
async run({ steps, $ }) {
const pinata = new PinataSDK({
pinataJwt: this.pinata.$auth.jtw_token,
pinataGateway: "example-gateway.mypinata.cloud" //your gateway
});
return await pinata.keys.list();
},
})
Pinata uses API keys for authentication. When you connect your Pinata account, Pipedream securely stores the keys so you can easily authenticate to Pinata APIs in both code and no-code steps.