pinata-listpins.bash: fetch pinata pins

Ref: #17
This commit is contained in:
Aminda Suomalainen 2020-07-05 21:08:20 +03:00
parent fb4f6f28ec
commit c5c0b9b572
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
1 changed files with 8 additions and 0 deletions

8
bash/pinata-listpins.bash Executable file
View File

@ -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