Leah and everybody,
I'm not entirely convinced web hooks aren't a good solution for
Twitter talking to Pownce, Jaiku, etc, but you're probably right.
However, I wouldn't assume the use cases for web hooks are limited to
where users have a web server.
The great thing about the simplicity of web hooks is that you *can*
register your own handler that you wrote and put on your own web
server (or on App Engine, or AppJet, or random cheap PHP hosting), but
that's obviously for the advanced users that can write simple handler
scripts. However, it very likely that there would be third parties out
there that would provide you with a handler endpoint that gives you
some great functionality without you needing a web server.
Tim's example is a web hook to SMS provider/adapter. They give you a
custom endpoint (post-receive URL as some call them) that you can drop
into whatever application, and then it magically takes the payload and
gives you some kind of SMS message to your phone. (In fact, since SMS
can be sent by email, you Switchub guys could probably put together an
SMS output handler pretty easily (just email to their number at all
the major networks or let them select their network in
configuration)).
But another great example of an actual service that gives value to end
users that don't have a web server is Scrobbld (http://
www.scrobbld.com), which integrates with PayPal without the need of
any username or password (simpler integration/authentication model)
and gives you all this extra value thanks to IPN (as a web hook).
One thing to keep in mind about comparing most of these web hook use
cases to trackback pings (and I'm working on a blog post about this),
is that the security model is inverted. With Trackbacks, a blog will
advertise (or will be known by convention) the URL to post to in a
public way. This is why there is a problem with spam. But with most
web hook use cases, the URL is not conventional or publicly
advertised. Unless you can crawl to it, the only people that know it
are the owner and the service you give it to, which we assume is not
going to spam you, but instead post useful and expected data (like
PayPal IPN--although you can argue whether it's all expected, but
that's PayPal's fault for lack of clear documentation).
-jeff
> Hi all,
>
> Mike (other Pownce dev) and I had a good chat about web hooks vs.
> XMPP. Most web services with public APIs (Flickr, Pownce, Twitter
> etc...) will probably lean a bit towards XMPP due to the high volume
> of updates.
>
> However, something to note is that web hooks are significantly easier
> for the client if they are already running a webserver. PayPal is a
> great example because they can assume the client is an online store
> (shopping!). It's significanly easier to use a web hook than expect
> the client to run an XMPP server.
>
> Another example we thought of was blogs and feed readers. A blog can
> assume a feed reader is running a webserver and registering a callback
> for a feedreader makes some sense (the push to RSS's pull). Mike
> points tohttp://
en.wikipedia.org/wiki/Ping_(blogging)