Jump to content

Recommended Posts

Posted

I'm trying to make a website to control a shelly 1.

 

I'm sending this API request:

POST /device/relay/control HTTP/1.1

Host: shelly-95-eu.shelly.cloud

User-Agent: OutSystemsPlatform

Content-Type: application/x-www-form-urlencoded

{

    "id": "XXXXXX4149b0",

    "auth_key": "XXXXXXXXXXXXXXXXA4A201032E89607F8719ABD217B645909EDE4D033273DD506CB2CDCBF9A8183117",

    "channel": 0,

    "turn": "off"

}

 

and getting this result:

 

 

{

  "isok": false,

  "errors": {

    "invalid_header": "Unauthorized! Wrong authorization header provided!",

    "invalid_token": "The login information is invalid! Please login again!"

  }

}

 


PS: I was able to get the GetDeviceStatus, with no problem.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...