iGoogle gadget for Tarpipe Postings

Skip to first unread message


Mar 10, 2009, 11:49:11 AM3/10/09
to tarpipe
maybe one of you guys can help me with this:
I'm not a developer, nevertheless I'm trying to create a gadget for
iGoogle (or Google desktop) that I can use to enter text and post it
to a defined Tarpipe workflow.
The problem is, I need to define the API token in the user's
preference and then read it dynamically within the gadget script.
Guillaume already helped me a little bit, but I still don't get it
running. Maybe that's also because of the general Tarpipe problems but
that's something I don't know.

So, here's my code so far. If anyone can help, I would appreciate!

<?xml version="1.0" encoding="UTF-8"?>
<ModulePrefs title="Tarpipe Post" />
<UserPref name="APItoken"
display_name="API Token"
default_value="0544502c2b9817d1d89b9ccaf4152023" // only needed
because of testing purposes.
required="true" />
<Content type="html">
<script language="javascript" type="text/javascript" >
var prefs = new gadgets.Prefs();
var APItoken = prefs.getString("APItoken");
action="http://rest.receptor.tarpipe.net:8000/?key='+ APItoken +'"
method="POST" enctype="multipart/form-data">');

<p>Title: <input type="text" name="title" /></p>
<p>Body: <input type="text" name="body" label="Body"/></p>
<p>URL: <input type="text" name="URL" label="URL"/></p>
<p><input type="submit" value="Post to Tarpipe"/></p>
Reply all
Reply to author
0 new messages