1) Create a github repository, where you plan each commit to contain a photo and accompanying meta data.
3) Create a rubyhook that receives the post-commit payload, retrieves the commit data, and posts your photo into picasaweb (or other photo site).
In this case rubyhook comes in really handy because you get a simple no-maintenance ruby script that does one simple thing: translates and re-transmits data from one service to another.
Use case B: IM-ified remote control
2) Create a rubyhook that receives the IM messages from imified and acts on those messages. Anything you can do in ruby, considering you're running "in the cloud." Send HTTP requests; perform some SSH commands on your server; send an email.
Think: "Single hook, Simple action."
This use case also loves rubyhooks because you get a simple no-maintenance ruby script to perform a few, defined, simple actions.
Use case C: Image transformer
1) Create a rubyhook that performs certain transformations on images -- using a single url: upload (POST) an image, and the response will be that same image transformed. Use a query string to specify what transformation you need done.
There may be sites out there who do this already, but this shows that you could use rubyhooks to post data and receive a translated version in response. Rubyhooks is helpful because it provides an isolated, no-maintenance blackbox processor for your data. (I'd probably limit requests to 60 seconds of processing time.)
- - - - -
Typically you'll end up using this to write scripts (some could turn out to be commonly-needed scripts) that take a webhook input from one source, and translate it to send off to another source in the appropriate language or medium; or as in case C, to respond with translated data.
- - - - -
Several meetings ago at RedPost, I and Jon Nunemaker talked a bit about the whole idea of webhooks. Part of the discussion that came up was that in order to connect many specific APIs on the web, you'll often need a middle-man to translate data, because there will never be standard formats for everything. Rubyhooks.com wouldn't provide a direct solution to that, but would offer an easy tool to accomplish many of these middleman needs. Besides, we all have ideas for custom technology connectors every so often, right? Here's where you can just go online and code away in a pre-deployed environment.
Ruby means you have a world of possibilities at your fingertips; Hooks means you're connected directly to live data events on the web.
- daniel parker -
"You have granted me life and steadfast love, and your care has preserved my spirit." Job 10:12
"The LORD is my chosen portion and my cup . . . indeed, I have a beautiful inheritance." Psalm 16:5-6
"Give what you can ... take nothing back!"