My ox4.org collaborator, Charlie, wrote a link shortener at ox4.li.
It has many cool features, not least:
- Unlike most others, it doesn't log personal information.
- It generates QR codes.
- If you put /kitteh after the shortened link, it redirects via a kitten picture!
So I persuaded him to write an API. This means that when I create a new blog post, I can automagically send out a tweet with the shortened URL. If you want to use the ox4.li shortener from a Drupal 7 web site, here's how ...
- Install and configure the Twitter module.
- Download the Shorten URLs module.
- Activate the module, and the custom services sub-module.
- Go to the module configuration page (admin > config > services > shorten).
-
Add the following into the custom services tab ...
Title: ox4.li
API endpoint URL: http://ox4.li/text_create?url=
Response type: Text
Then save the settings. -
Go to the general config page, and change these settings ...
Method: cURL
Service: ox4.li
Save the settings.
Done.