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

Close

Forgot password?

Close message

Login

Subscribe to this blog post’s comments through…

  • Add to netvibes

  • Subscribe in NewsGator Online

  • Add to My Yahoo!

  • Feedblitz

  • Add to Pageflakes

  • Add to Google

  • Subscribe with Bloglines

  • Add to Microsoft Live

RSS Icon

RSS Feed

Subscribe via email

Subscribe

Subscribe to this blog’s comments through…

  • Add to netvibes

  • Subscribe in NewsGator Online

  • Add to My Yahoo!

  • Feedblitz

  • Add to Pageflakes

  • Add to Google

  • Subscribe with Bloglines

  • Add to Microsoft Live

RSS Icon

RSS Feed

Subscribe via email

Subscribe

Follow the discussion

Comments

Loading... Logging you in…

  • Logged in as

Admin options

Save settings

There are no comments posted yet. Be the first one!

Post a new comment

    Comment as a Guest, or login:

    Go back

    Posting anonymously.

    –>

    Comments by IntenseDebate

      Reply as a Guest, or login:

      Go back

      Posting anonymously.

      –>

      Loading Loading IntenseDebate Comments…

      This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn’t support JavaScript, or they didn’t load fast enough.

      Leave a Reply

      A very cool feature of tweetie2 on the iPhone is the ability to specify a custom URL shortener. If you install YOURLS on your own website, you can use it! Note, this is different than my earlier post on how to roll your own URL shortener. That was really simple, it’s a little more complex to install YOURLS, but you get access to a web api if you do the work to get this up and running.

      Posted via web from Kaydub’s posterous