May 15 2008

Tarpipe.com API PHP Implementation

After a few days testing the tarpipe.com “developer preview“, and more than 5 workflows created, the need of intergate tarpipe.com api with a easy to use php class became obvious.

Playing with tarpipe.com simplifying

Following the examples of the implementations on Perl and Python:

I have created the Tarpipe.com Api PHP implementation.

The source can be found out on Google Code, Tarpipe PHP.

A simple example of use could be:

<?php

require_once("lib/Tarpipe_PHP.php");

$key = "YOUR_WORKFLOW_KEY";
$client = new Tarpipe_PHP($key);
$title = "Playing with tarpipe.com PHP_API";
$image = "directory/someimage.jpg";
$body = "Some body on you message";
$client->upload($title,$body,$image);
?>

It’s my contribution for the project, that even if it is on a “developer preview” version is already making me smile, with the potential of the project.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>