freeboxos-bash-api icon indicating copy to clipboard operation
freeboxos-bash-api copied to clipboard

error login

Open Macorou opened this issue 1 year ago • 1 comments

Bonjour,

Quand je fais cette requete: "" #!/bin/bash

MY_APP_ID="XXX" MY_APP_TOKEN="XXX"

source the fbx-delta-nba_bash_api.sh

source ./fbx-delta-nba_bash_api.sh

login

login_freebox "$MY_APP_ID" "$MY_APP_TOKEN"

get system data

answer=$(call_freebox_api /system/)

extract your box uptime

uptime=$(get_json_value_for_key "${answer}" 'result.uptime')

print the result

echo "My box is up since $uptime"

"" j'ai "Invalid request: cannot parse json: invalid_request"

pouvez-vous m'aider svp ?

Merci d'avance,

Macorou avatar Sep 22 '24 21:09 Macorou