Skip to content

Commit

Permalink
add new required current_account_id param
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Dec 30, 2020
1 parent ecfc527 commit f9b396c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run
@@ -1,7 +1,7 @@
#!/bin/bash
source .env
dedupe_id=$RANDOM-amonzo-expronzo
pots=$(http "https://api.monzo.com/pots" "Authorization: Bearer $access_token" )
pots=$(http "https://api.monzo.com/pots" "current_account_id==$account_id" "Authorization: Bearer $access_token")
code=$(echo -n $pots | jq -r .code)
if [ "$code" == "unauthorized.bad_access_token.expired" ]; then
if [ -z "$refresh_token" ]; then
Expand Down

0 comments on commit f9b396c

Please sign in to comment.