Test script

This commit is contained in:
Abel 2022-01-07 14:31:51 +01:00
parent f29ab0958f
commit abfc566415

4
getEAN.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
curl -X GET "https://gateway.edsn.nl/eancodeboek/v1/ecbinfoset?product=ELK&streetNumber=$2&postalCode=$1&limit=50&offset=0" \
-H "accept: application/json" \
-H "X-API-Key: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJzZWFyY2htZXRlcmluZ3BvaW50cGJkLnByZC5lZHNuLm5sIiwibWFpbCI6ImZlbmNlcl9ob2xkcy4wd0BpY2xvdWQuY29tIiwibWFpbG9wdGluIjp0cnVlfQ.G2JQoJf448ek33jLqpZX2g9k1ujose3aUoguRLViTb8" 2>/dev/null | json_pp