alias example {
JSONOpen -duw points <url>
JSONUrlMethod points GET
JSONUrlHeader points x-api-key <api-key-removed>
;; These headers are auto-set by the json parser
;; Host: <host-removed>:443
;; Connection: close
;; This header isn't needed as you aren't sending any data
;; Content-Type application/x-www-form-urlencoded
JSONUrlGet points
echo -a Fan: $JSON(points, loyalty, fan)
echo -a Total: $JSON(points, loyalty, total_points)
echo -a Current: $JSON(points, loyalty, current_points)
echo -a Updated: $JSON(points, loyalty, updated_at)
}