Skip to content

Instantly share code, notes, and snippets.

@HerrSpace
Created June 27, 2016 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HerrSpace/05c93833ad8bfb77c5983f2287e221fc to your computer and use it in GitHub Desktop.
Save HerrSpace/05c93833ad8bfb77c5983f2287e221fc to your computer and use it in GitHub Desktop.
Curl number26 transactions.
curl 'https://api.tech26.de/oauth/token' -H 'Authorization: Basic bXktdHJ1c3RlZC13ZHBDbGllbnQ6c2VjcmV0' --data-urlencode 'username=' --data-urlencode 'password=' --data 'grant_type=password' | jq -r '.["access_token"]' | (read token; curl 'https://api.tech26.de/api/smrt/transactions?limit=50' -H "Authorization: bearer $token") | jq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment