Skip to content

Instantly share code, notes, and snippets.

@ayoubfathi
Last active April 13, 2019 07:01
Show Gist options
  • Save ayoubfathi/761205a5cadac5cac69e73dfaff6b4b9 to your computer and use it in GitHub Desktop.
Save ayoubfathi/761205a5cadac5cac69e73dfaff6b4b9 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in $(cat stores-exchange.txt);
do
j=$(curl -s "https://exchangemarketplace.com/shops/$i/revenue_data"
| dap json + insert store=$i.myshopify.com + json)
echo $j | jq -c . >> sales_data.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment