Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weebhook setup #359

Open
maciej-marczak opened this issue Nov 7, 2024 · 1 comment
Open

Weebhook setup #359

maciej-marczak opened this issue Nov 7, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@maciej-marczak
Copy link

Current Situation

I'm trying to configure a new webhook via API. When using the postman application I get the message {"message": "Unauthorized"
}. the token I use is from the mobile application, without any transformations.
when I use rest api the same token in combination with data and secretkey works fine

Logs

{"message":"Unauthorized"}

Configuration

https://api.switch-bot.com/v1.1/webhook/setupWebhook

{
    "action": "setupWebhook",
    "url": "http://******/webhook/switchbot",
    "deviceList": "ALL"
}

Environment

  • OS: MacOs Sequoia
  • Software: Postman
  • Node:
  • npm:

Additional Context

No response

@Larsene
Copy link

Larsene commented Nov 25, 2024

has your webhook server a valid SSL Certificate ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants