• Skip to primary navigation
  • Skip to main content

Blair Williams

Everything is an Experiment

  • Home
  • WordPress Plugins
    • MemberPress
    • Easy Affiliate
    • Pretty Links
    • ThirstyAffiliates
  • Contact
  • About
Announcing the Pretty Link API

Announcing the Pretty Link API

by Blair Williams · May 14, 2009

The Pretty Link Plugin for WordPress now has an API (as of version 1.3.28) that Developers can connect with to shorten links using a user's WordPress website.

Are you a WordPress plugin developer? Or are you developing a killer app for Twitter, Facebook or other Social media? It is now possible to give your users the ability to create short links with their own domain name (in addition to offering them with the options of Bit.ly, TinyURL, etc).

There are 2 ways that the Pretty Link API can be accessed:

  1. As a Local WordPress API — there are a set of Pretty Link functions that have been defined and are usable by mock api, WordPress plugin developers.
  2. As a Remote XML-RPC API — there are a set of XML-RPC based functions that can be used by any other application that is Internet enabled. It doesn't matter what language your App is written in, if it is Internet-based or a client app running on the desktop — you can now offer your users the ability to create short links on their own domains.

For more details about the Pretty Link API, please visit the Pretty Link API page here:

https://blairwilliams.com/pretty-link/api/

Filed Under: Plugins, Pretty Link, Software Tagged With: api, function, plugin, pretty-link, Software, Wordpress, xml-rpc

Reader Interactions

Comments

  1. ritchie says

    May 22, 2009 at 4:52 am

    Hi, PrettyLink is an amazing plugin, I’m loving it. Just donated, pls keep up the brilliant work!

  2. Blair Williams says

    May 28, 2009 at 1:51 pm

    Thanks ritchie!

  3. linux-backgrounds.co says

    August 5, 2010 at 12:42 pm

    hello,
    i have tried with the local api! it works fine when I execute something from admin panel! but when same function is executed as wordpress cron, it is not working! i mean, most probably, the plugin is not loaded that time! i am not sure though!

    i have a cron function! i put an option to trigger the cron from admin panel! the pretty links work perfect when i trigger from admin panel but not when it automatically executed via wp cron handlers!

    any help regarding this?

  4. thkouk says

    May 19, 2014 at 1:24 pm

    Hi, thanks for the great plugin and the API.
    You need to update your samples a bit, for example the prli_get_link function doesn’t get slug as a parameter anymore, you have to use prli_get_link_from_slug.

    Thanks again

Copyright © 2025 · No Sidebar Pro on Genesis Framework · WordPress · Log in