TWiT Army ~ Ping.fm Bridge

Projects 7 Comments

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.
Download
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.

Gnip

Projects No Comments

Gnip is a company with the slogan “Making data portability suck less.” It offers a free service to publishers to help take the load off of a publisher’s API (REST, RSS, XMPP, ATOM) by reducing the need for continuous polling and acting as an bridge between publisher and consumers. I am currently revamping my Twitter XMPP API script to update only after Gnip POST notifications. You can download my prototype and play around with it however it is a very very early version and still has bugs.

Twitter Pseudotrack

Projects No Comments

From Georgology:

I have been a Twitter user since earlier this year but I have been aware of the service since about a year before. I initially didn’t get the concept of Twitter and the idea of following people and posting your own 140 character tweets. I soon noticed that I would regularly visit certain people’s Twitter profile to see what they were up to. I then realized it was time to join. Irish techie Datalore gave me the tip to use Google Talk, or more broadly XMPP (Jabber) , to post and received updates from Twitter. Another user Bwana posted a video about this Twitter usage strategy. This is where I learned about “track”. Track essentially allows you to receive updates whenever a particular word is mentioned.

Twitter was great in the first few months of my use however Twitter soon started to see scalability issues after the large influx of users. Downtime of services and Twitter as a whole began to increase and the infamous fail whale began popping up more often. In a response Twitter disabled many of its services including track and some XMPP functionality. 

I then decided to reimplement track over XMPP with a little PHP and a cron job. The basic concept of the script is to import the RSS from the Summize API, check for new tweets (since_id comes in handy for that) then send them to the XMPPHP class which send the tweets to my XMPP server every five or so minutes. Along with the service Ping.fm to post, this is how I now use Twitter until everything is working again.

Update Literally one hour after I finished writing the script a came across an articleabout a service called Twitterspy that now does the same thing. Twitterspy is a great way to bring back the much loved “track” in XMPP and if anyone is interested I suggest you check it out. However, I still will probably still use my script because I my tests it has the advantage in speed, which is a necessity for me and the reason I wrote the script instead of using the web interface.

I also added a script that uses Twitter’s API to poll for updates from people that I am following. Twitter’s only remaining XMPP feature available to the general user base “disappeared” after the iPhone 3G launch.

Wordpress is up.

Announcement No Comments

I finally got the time to find a acceptable Wordpress theme for this site. Check out current projects for ongoing projects.

Icons by N.Design Studio. Designed By Ben Swift. Powered by WordPress, Search Optimization and Free WordPress Themes
Entries RSS Comments RSS Log in