polr-api is a little API wrapper for your own polr-powered URL shortening service. For now, it only supports link shortening, not lookups. If you don't have polr installed on your server yet, get it here.
Calling constructor :
var polrAPI = "server hostname" "polr API key" "protocol(optional)";
note: protocol
can be either set to "http"
or "https"
. The default is "http"
Shortnening :
plorAPI;
will shorten the URL in the "link"
parameter with the default server shornening parameters.
polrAPI;
will shorten the URL in the "link"
variable with the link ending specified in "custom ending" parameter.
Example :
var polr = ; polrApi = "server hostname" "polr API key" "protocol(optional)"polrApi;
Example :
var polr = ; polrApi = "server hostname" "polr API key" "protocol(optional)"polrApi;