CedricG Posted March 15 Report Share Posted March 15 Bonjour, Je tente d’exploiter l’API de mes deux Révolution. Sur la plus récente, je peux faire la demande de token, mais pas sur la plus ancienne. Pour la nouvelle freebox cedric@Mnementh6 / $ curl -sk https://mafreebox.freebox.fr/api_version |jq . { "box_model_name": "Freebox Server (r1)", "api_base_url": "/api/", "https_port": 456, "device_name": "Freebox Server", "https_available": true, "box_model": "fbxgw-r1/full", "api_domain": "domain.fbxos.fr", "uid": "bbb", "api_version": "10.2", "device_type": "FreeboxServer1,1" } cedric@Mnementh6 / $ curl -sk https://mafreebox.freebox.fr/api/v4/login/authorize/ -X POST -d '{ "app_id": "fr.cedric.watcher", "app_name": "JuizWatcher", "app_version": "0.0.1", "device_name": "Mnementh6" }' | jq . { "success": true, "result": { "app_token": "xxx", "track_id": 0 } } cedric@Mnementh6 / $ curl -sk https://mafreebox.freebox.fr/api/v4/login/authorize/0 -X GET | jq . { "success": true, "result": { "status": "pending", "challenge": "yyy", "password_salt": "zzz" } } Pour l'ancienne cedric@Mnementh6 / $ curl -sk https://mafreebox.freebox.fr/api_version |jq . { "box_model_name": "Freebox Server (r1)", "api_base_url": "/api/", "https_port": 123, "device_name": "Freebox Server", "https_available": true, "box_model": "fbxgw-r1/full", "api_domain": "domain.fbxos.fr", "uid": "aaa", "api_version": "10.2", "device_type": "FreeboxServer1,1" } cedric@Mnementh6 / $ curl -sk https://mafreebox.freebox.fr/api/v4/login/authorize/ -X POST -d '{ "app_id": "fr.cedric.watcher", "app_name": "JuizWatcher", "app_version": "0.0.1", "device_name": "Mnementh6" }' | jq . { "msg": "Erreur interne", "success": false, "error_code": "internal_error" } Auriez-vous une idée ? Ai-je manqué quelque chose ? J’ai testé en v4 ou v10, j’ai exactement le même comportement pour les deux machines. Merci Cédric Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.