TWiT Army ~ Ping.fm Bridge

| 5 Comments | No TrackBacks

Bridge documentation has moved to the wiki.

Here is a PHP script which will need to be hosted on your own server that will allow you to post to the TWiT Army using the Ping.fm Custom URL feature. This bridge is needed because Ping.fm Custom URL doesn't support passing authentication. Make sure your posts are not over 140 characters because unlike Twitter, TWiT Army will not truncate the post but rather reject the entire thing. Installation:
  1. Edit your username and password to TWiT Army in the script.
  2. Upload to a host that supports PHP and cURL (Most already do).
  3. Rename the file to something secret because the script doesn't do any authentication.
  4. Point the Custom URL to the address for the script.
  5. Enjoy Ping.fm integration to the TWiT Army.
An alternative method is to configure Custom URL as follows:
  • Add the Custom URL of
  • http://www.bashtech.net/twit/post.php?u=USERNAME&p=PASSWORD
  • Replace USERNAME and PASSWORD to the appropriate values.
This method does not require hosting any files. If your username or password contains symbols you should first encode the values.
If you have any trouble I'm "@bgeorge" on TWiT Army (and almost everywhere else). Please note that I have returned to school so it my be several days before you receive a response. UPDATE TWiT Army API end point has changed to "http://army.twit.tv/api". UPDATE [10-9] Added support for usernames and passwords with symbols. UPDATE [10-12] Fixed an encoding issue with posts that contain symbols.

No TrackBacks

TrackBack URL: http://bashtech.net/mt/mt-tb.cgi/36

5 Comments

Would love to use this, but the Download link isn't working. Would rather install on my own server. Thanks.

Gary: Sorry, I neglected to add in a cname record when I migrated my DNS. The download link has been updated and you can download it now.

For those who just don't like php.... I wrote a similar thing in perl. It's a CGI

Source code available at http://files.microft.org/cgi-scripts/twitarmy.pl

Should the following line:
curl_setopt($ch2, CURLOPT_POSTFIELDS, "status=".urlencode(stripslashes(urldecode($message))).."&source=Pingfm Bridge");
Really be:
curl_setopt($ch2, CURLOPT_POSTFIELDS, "status=".urlencode(stripslashes(urldecode($message)))."&source=Pingfm Bridge");

(replace ".." with "." before "&source=)

Poojan: Yes it should be. I made a slight modification a few days ago and I must have made a typo. It's fixed now.

Leave a comment