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

Add POST method to rest_api_handler options #18

Open
gigawatts opened this issue Dec 4, 2016 · 4 comments
Open

Add POST method to rest_api_handler options #18

gigawatts opened this issue Dec 4, 2016 · 4 comments

Comments

@gigawatts
Copy link

gigawatts commented Dec 4, 2016

How hard would it be to modify the rest_api_handler options to allow an option for a POST call to be made a URL instead of a GET ?

As an example, I would like the fauxmo script to call the resource link of my WioLink devices to perform various actions.

Here is an example of the type of curl command I would run to toggle.
curl -k -X POST https://us.wio.seeed.io/v1/node/GroveRelayD0/onoff/0?access_token=xxxx

Thanks!

@MrDadaGuy
Copy link

I need this as well. I guess I'll try to hack it myself :)

@MrDadaGuy
Copy link

#33

@MrDadaGuy
Copy link

I've created a pull request here, meanwhile you can find it on my fork: https://github.com/MrDadaGuy/fauxmo

@gigawatts
Copy link
Author

I forgot I even opened this issue. @MrDadaGuy ill check our your branch. Thanks!

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

No branches or pull requests

2 participants