How To Use Your Custom Yourls Shortener with Tweetie 2

October 9th, 2009

Just a quick little tip here for those of you who are using the brand new version of Tweetie for iPhone [iTunes link].

If you are using Yourls, a great custom URL shortener (that I use all the time for my egord.in domain name), you can actually have Tweetie shorten your twitter urls using your custom domain name. Using the Yourls API, the process is simple.

In Tweetie’s settings (accounts~~>settings~~>url shortening~~>custom…), type or paste the following URL, replacing the text in all caps with your domain name, yourls username, and password (note: for this to work, you cannot have any characters in your username and/or password that are not letters or numbers):

http://YOURSITE.COM/yourls-api.php?action=shorturl&url=%@&username=YOURUSERNAME&password=YOURPASSWORD&format=simple

Then just click Save. You can also set your yourls installation to public (its in your yourls includes/config.php file), and then not include the &username and &password portions. As the yourls dev Ozh explained, you could also make a secret copy of yourls-api.php and make it public by removing the top line including the authorization information.

Hope that helps!

[update]: Added the portion about how special characters are not allowed in usernames & passwords (thanks @mirthlab).

2 Responses to “How To Use Your Custom Yourls Shortener with Tweetie 2”

  1. WordPress 2.8.5 is out, updates to Courant News, and details on the Columbia Spectator | CoPress said:

    [...] How To Use Your Custom Yourls Shortener with Tweetie 2 – Simple tutorial on how to use your self-hosted URL shortener with Tweetie 2. Yourls is a slick piece of software for hosting your own URL shortener. [...]

  2. hinwe.is: Eigener Kurz-URL-Dienst ยป Pottblog said:

    [...] Eine Sache die mir bei dem Script sehr gut gefällt ist das Vorhandensein einer API6. So kann ich beispielsweise über den iPhone-Twitterclient Tweetie (2), den ich vor kurzem hier getestet habe, auch von unterwegs solche Links anlegen. Details dazu gibt es beispielsweise im Blog-Beitrag How To Use Your Custom Yourls Shortener with Tweetie 2. [...]

Leave a Reply

random tips & tricks

this is where I share with you (my two readers) my posts which have no better category.

take a look around and be sure to let me know in the comments which posts you find helpful.