Author Topic: HTTP post action  (Read 1039 times)

Outlet

  • Newbie
  • *
  • Posts: 41
HTTP post action
« on: August 04, 2009, 02:50:39 AM »
In addition to mail, would it be possible to have an option to post data to a url (preferably supporting https with http basic auth)?  Would be nice to have it trigger a script when a trigger is reached. If posting is too much work, a simple URL request would
be great. This action would allow my script to be triggered when something changes, instead of hitting my API feed every 10 seconds.


Thanks!

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: HTTP post action
« Reply #1 on: August 29, 2009, 03:31:58 AM »
Can you send me a PM or email at support@iobridge.com with an example URL?

We have been thinking about this and we will get it on the list.
ioBridge Support
Community Team

noelportugal

  • Newbie
  • *
  • Posts: 35
    • http://blogs.oracle.com/noelportugal/
Re: HTTP post action
« Reply #2 on: October 25, 2009, 11:25:32 AM »
Any updates on this one? I believe it will be really nice to have...So instead of sending an email I would like the option of having a field where I can enter a destination URL and once the trigger condition is met the ioBridge server will do a post to that URL. My url will most likely contain a parameter (http://myserver.com/iobridge?action=light+on) then the code in my server can do other operations.

To make it even better, it would be nice that it will allow basic HTTP authentication...So for example I could post to twitter API directly by passing user:password and status...

In the back end you could even implement an custom curl job like the one below:

curl -u user:password -d "status=playing with Twitter API from ioBridge" http://twitter.com/statuses/update.xml

-Noel

nathanknz

  • Newbie
  • *
  • Posts: 16
Re: HTTP post action
« Reply #3 on: October 29, 2009, 04:34:33 PM »
Hey there.

Just to poke my nose in, I think this would be an excellent feature.

Thanks.

nick

  • Full Member
  • ***
  • Posts: 174
Re: HTTP post action
« Reply #4 on: October 29, 2009, 08:54:44 PM »
Can you send me a PM or email at support@iobridge.com with an example URL?

We have been thinking about this and we will get it on the list.

Just a plain URL would suffice. The post action doesn't have to pass any parameters to the URL, once the page is called it can poll the iobridge and figure out why it was called. 

nathanknz

  • Newbie
  • *
  • Posts: 16
Re: HTTP post action
« Reply #5 on: October 30, 2009, 06:25:12 AM »
What I had in mind was the ability to send SMS via a provider such as Clickatell, using their http/s API web service.

Information on their site: http://www.clickatell.com/developers/api_http.php

And a sample URL (taken from the above site): http://api.clickatell.com/http/sendmsg?user=xxxxx&password=xxxxx&api_id=xxxxx&to=448311234567&text=Meet+me+at+home

It can be done using their SMTP service and sending an email, but a http/s lookup would be more reliable.

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: HTTP post action
« Reply #6 on: November 07, 2010, 09:53:08 PM »
We have just added this feature and some users have been trying it out. You can write a custom HTTP or HTTP POST and do basic authentication as an action.

Send an email to support@iobridge.com if you want to try it before we release it.
ioBridge Support
Community Team