Need some help -> Pinata.cloud - API to upload (pin) a file
Any help would be greatly appreciated. I feel like I have just dumped a bunch of random info in this post ๐, but hopefully it gives someone enough info to recommend some new things for me to try.
As a note, I am able to get the Pinata authentication and usage APIs to work so I have the basics functioning.
Additionally, I am able to get the Pinata pinning API to work when I use Postman (just not with Xano, yet)
I have also referenced the Multipart Support info in this article as the basis for what I have been trying.
https://docs.xano.com/working-with-data/functions/external-api-request
This is the Pinata documentation for the pinning (file upload) API
https://docs.pinata.cloud/pinata-api/pinning/pin-file-or-directory
Here is the curl command from the PInata documentation:
curl --location --request POST 'https://api.pinata.cloud/pinning/pinFileToIPFS'
--header 'Authorization: Bearer PINATA JWT'
--form 'file=@/Users/Desktop/images/cat.JPG'
--form 'pinataOptions='{'cidVersion '': 1}'''
--form 'pinataMetadata=''{ ''name '': ''MyFile ''
Connect Xano to...
8 replies