Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Failed to load latest commit information.
config Remove spark setting
controller Remove spark setting
libraries Remove spark setting
README.mkd Update: add spark install url


CodeIgniter Google URL Shortener API Library

Welcome to the home of the Google URL Shortener API Library, a project that will help you to shorten, expand, analytics long URL.

What is the Google URL Shortener API?

The Google URL Shortener at is a service that takes long URLs and squeezes them into fewer characters to make a link that is easier to share, tweet, or email to friends. The Google URL Shortener API allows you to develop applications that interface with this service. You can use simple HTTP methods to create, inspect, and manage short URLs from your desktop, mobile, or web application.

ref :

Spark Install

Please referrer from


Download all file from this site.

$ git clone git://

Move the files to their corresponding places within your codeigniter application directory.

$ copy config/google_url_api.php your_application/config/
$ copy controller/google_url.php your_application/controller/
$ copy libraries/Google_url_api.php your_application/libraries/

Open config/google_url_api.php file, and configure your shorten api key

$config['google_api_key'] = "xxxxx";

Test your controller file: google_url.php


If you're having problems, then enable debugging in your controller code:



Copyright (C) 2011 Bo-Yi Wu ( appleboy AT )

Something went wrong with that request. Please try again.