Announcement

Collapse
No announcement yet.

Using POST or PUT to call plugin function

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using POST or PUT to call plugin function

    Hello!

    I've been successfully using HomeSeer's JSON API to call into my plugin using pluginfunction as in:

    Code:
    GET http://localhost/JSON?request=pluginfunction&function=myFunction&plugin=myPlugin&P1=myParam1&P2=myParam2
    However I am running into trouble calling the plugin from a library that has the following limitations:
    • Outbound calls can only be PUT/POST
    • Parameters must be passed in formatted as JSON in the body of the request


    Does anyone have any clues into whether calling a plug-in this way, rather than using GET and wrapping the parameters in the query?

    Thanks in advance!
    Antonio.

  • #2
    Same problem here, I want to interface integrate a webhook using the pluginfunction. For this to work, it must support POST. Anybody got this working ?

    Comment


    • #3
      Post would require HS to Json decide the body and treat it as Params. I don’t believe that is done today and unlikely you’d get that. The issue is your library. Can’t you use a different one?

      Comment

      Working...
      X