[warning: technical information ahead]
We've created a connector that lets you easily extend any workflow by connecting to an external REST endpoint. The REST connector is compatible with the Yahoo! Pipes Web Service Module — the only difference is that we only process with a single entry instead of a feed of entries.
The connector POSTs a JSON encoded list of properties to a service URL and expects a JSON or RSS formatted response. Here's an example JSON response:
{
"items" : [
{
"title" : "My title",
"link" : "http://example.com",
"description" : "My Description"
}
]
}
The compatibility means that you can use any existing Web Service that already worked with Yahoo! Pipes. OpenCalais offers a service with those characteristics and we decided to give it a try with our new REST connector.

This example workflow uses the REST connector to talk directly to the Calais Yahoo! Pipes Web Service. The OpenCalais URL (including the API key) is specified using the TextInput connector.
Creating your own external Web service is also very easy. All you have to do is wait for a POST, process the incoming JSON information and output a JSON formatted response. Here's an example written in PHP:
<?php
//
// Obtain the input from the POST "data" field
//
$input = json_decode($_POST['data']);
if ($input) {
//
// As an example, the output is copied from the input
//
$output['title'] = $input->items[0]->title;
$output['link'] = $input->items[0]->link;
$output['description'] = $input->items[0]->description;
//
// Output JSON encoded response
//
}
?>
We hope this new REST connector will create new possibilities and expand what you can already do with your workflow. Please let us know how you'll use it with your Web services.