Kaco Posted August 28 Share Posted August 28 pls some help me, i have problem with api use this for check data from cloud { url: "https://shelly-24-eu.shelly.cloud/device/status", headers: { "Authorization": "Bearer " + apiToken }, query: { id: deviceID }, }, i have right API token from app and not work still same phrase with invalid token {"isok":false,"errors":{"invalid_token":"The login information is invalid! Please login again!"}} i have premium account .... where is problem, have bad url ? or ? in local network all work well very thx for information 🙂 Quote Link to comment Share on other sites More sharing options...
tvbshelly Posted August 28 Share Posted August 28 Pls. try this URL: https://shelly-24-eu.shelly.cloud/device/status?id=xxx&auth_key=xxxx The hint comes from here: Quote Link to comment Share on other sites More sharing options...
Kaco Posted August 28 Author Share Posted August 28 Quote thx i modify but have other problem 🙂 let url = "https://shelly-24-eu.shelly.cloud/device/status?id=" + encodeURIComponent(deviceID) + "&auth_key=" + encodeURIComponent(apiToken); my device ID not been connected to the cloud 🙂 show my app but not connected wtf 🙂 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.