Open Macorou opened 2 months ago
Dear @Macorou
If you want to get help, please open issues here (and move this issue to that place)
https://github.com/nbanb/fbx-delta-nba_bash_api.sh/issues
I recommand you to use the last version of the library which is 12 commit ahead @JrCs last merge :
PS : I think it could be a certificat related issue . Also to trace actions, could you try (in this order):
source ./fbx-delta-nba_bash_api.sh
MY_APP_ID="XXX"
MY_APP_TOKEN="XXX"
echo -e \"login_freebox "$MY_APP_ID" "$MY_APP_TOKEN" \"
login_freebox "$MY_APP_ID" "$MY_APP_TOKEN
answer=$(call_freebox_api /system/)
echo -e "${answer}"
uptime=$(get_json_value_for_key "${answer}" result.uptime)
echo "My box is up since $uptime"
Kind regards nbanba
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,