Last active
October 7, 2021 07:08
-
-
Save illarionvk/e4e0c8d53d1f8b85234b960fef2c2a83 to your computer and use it in GitHub Desktop.
ReCharge API Curl requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -euxo pipefail | |
TOKEN=INSERT_YOUR_TOKEN | |
# Get subscription count | |
curl -i -H "X-Recharge-Access-Token: ${TOKEN}" \ | |
-X GET 'https://api.rechargeapps.com/subscriptions/count?created_at_min=2017-09-01T00:00:00' | |
# Get third page of the results | |
curl -H "X-Recharge-Access-Token: ${TOKEN}" \ | |
-X GET 'https://api.rechargeapps.com/subscriptions?created_at_min=2017-09-01T00:00:00&limit=5&page=3' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment