Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 controller
Octocat-spinner-32 libraries
Octocat-spinner-32 README.mkd
README.mkd

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 goo.gl 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 goo.gl short URLs from your desktop, mobile, or web application.

ref : http://code.google.com/intl/zh-TW/apis/urlshortener/

Spark Install

Please referrer from http://getsparks.org/packages/google-url-shortener/versions/HEAD/show

INSTALLATION

Download all file from this site.

$ https://appleboy@github.com/appleboy/CodeIgniter-Google-URL-Shortener-API.git
$ git clone git://github.com/appleboy/CodeIgniter-Google-URL-Shortener-API.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

http://localhost/google_url/

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

$this->google_url_api->enable_debug(TRUE);    

COPYRIGHT AND LICENCE

Copyright (C) 2011 Bo-Yi Wu ( appleboy AT gmail.com )

Something went wrong with that request. Please try again.