From c5c0b9b572e2e49019fdb59a05af1436ba76fa2e Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sun, 5 Jul 2020 21:08:20 +0300 Subject: [PATCH] pinata-listpins.bash: fetch pinata pins Ref: #17 --- bash/pinata-listpins.bash | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bash/pinata-listpins.bash 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