Jump to content
🌟 NEW Shelly Products Reveal Video! 🌟 NEUE Shelly-Produkte-Enthüllungsvideo! 🌟 ×
NOTICE / HINWEIS: iOS 18 Update and Today Widgets ×

api code not work


Kaco

Recommended Posts

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 🙂 

Link to comment
Share on other sites

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 🙂

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Erstelle neue...