diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7f06f77 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +default: run + +run: + go run main.go diff --git a/fetch_api.sh b/fetch_api.sh new file mode 100755 index 0000000..0a18db7 --- /dev/null +++ b/fetch_api.sh @@ -0,0 +1,70 @@ +#!/bin/bash + +# Ensure both cursor and limit arguments are provided +if [ "$#" -ne 2 ]; then + echo "Usage: $0 " + exit 1 +fi + +cursor=$1 +limit=$2 + +# Construct the JSON payload with the provided cursor and limit +json_payload=$(cat <