diff --git a/bash/pinata-listpins.bash b/bash/pinata-listpins.bash new file mode 100755 index 0000000..a5ddc1b --- /dev/null +++ b/bash/pinata-listpins.bash @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# Fill me +PINATAAPIKEY= +PINATASECRETAPIKEY= + +# -H = add header, -X GET = get request, tee = create a file and store outpot there +curl -H "pinata_api_key: $PINATAAPIKEY" -H "pinata_secret_api_key: $PINATASECRETAPIKEY" "https://api.pinata.cloud/data/pinList?status=pinned" -X GET | tee response.json