Skip to content

nep/shorteen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shorteen

Shorteen lets you shorten your URLs using wide range of shortening services - third-party and self-hosted.

Usage

{exp:shorteen:process service="bitly" url="http://www.ellislab.com"}

Parameters:

  • url – URL to shorten. If omited, will shorten URL of current page.
  • service – shortening service to use. Possible values:
    • googl – goo.gl (default)
    • isgd – is.gd
    • bitly – bit.ly (default)
    • yourls – YOURLS based service (running on any domain)
    • lessn-more – Lessn More based service (running on any domain)
    • cloud-app – CloudApp based service (running on any domain)

The shortest form of tag would be {exp:shorteen:process} – shortens URL of current page using goo.gl

If service is not available or some data are missing in settings, the module will return the 'initial' long URL.

Settings

Some shortening services are available openly for everyone, and some require providing API key and/or other data. You need to provide those in module settings. "Shorteen secret" is used to password-protect shortening that is made by passing URL in query string.

goo.gl

To acquire an API key, visit the APIs Console. In the Services pane, activate the Google URL Shortener API; if the Terms of Service appear, read and accept them.

Next, go to the API Access pane. The API key is near the bottom of that pane, in the section titled "Simple API Access."

bit.ly

To get started, you'll need a free bitly user account and Access token. Signup at: http://bitly.com/a/sign_up

If you already have an account, you can find your access token at: https://bitly.com/a/oauth_apps

YOURLS

If you have YOURLS running on you own domain, you need to specify service URL (where script is installed) and secret signature token. The signature can be found on http://yourls-address/admin/tools.php

Lessn More

If you have Lessn More running on you own domain, you need to specify service URL (where script is installed) and API key (displayed when you log in to Lessn More).

CloudApp

Because CloudApp uses HTTP Digest authentication, you need to provide your CloudApp email address and password to create short URLs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published