Created Google URL Shortener (markdown)

Ramkumar Sankarpandi 2013-09-03 04:46:21 -07:00
parent 6f6131e66d
commit c37287572e

13
Google-URL-Shortener.md Normal file

@ -0,0 +1,13 @@
# Google URL Shortener API Class for Codeigniter
## Usage:
$apiKey = "<< Your Google API Key >>";
//load the library
$this->load->library('GoogleURL');
//initialize with the google API Key
$this->googleurl->_initialize($apiKey);
//for shortening
echo $this->googleurl->shorten('http://www.google.com');
//for expanding
echo $this->googleurl->expand('http://googl.com/FgFHGf');