In Code on December 13, 2009 at 11:16 am

I’ve been wanting to post this for a while, but I just added some much-needed polish to it. This class, named TJURLShortener, is the one that I’m using in all tijo Apps to shorten and expand URLs using the j.mp (or any, theoretically) URL shortening service. The object is simple enough, instantiate it with a given login, API Key, and delegate, make that delegate implement the TJURLShortenerDelegate methods (all are optional), and invoke shortenURL: or expandURL:. That’s it, this is present in all tijo Apps that can currently upload to Twitter, as well as the upcoming @tijosudoku view for Sudoku Helper. Check it out, pretty user-friendly.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: