mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
Updated Google URL Shortener (markdown)
parent
c37287572e
commit
e51056ff72
@ -1,7 +1,7 @@
|
||||
# Google URL Shortener API Class for Codeigniter
|
||||
|
||||
## Usage:
|
||||
|
||||
`
|
||||
$apiKey = "<< Your Google API Key >>";
|
||||
//load the library
|
||||
$this->load->library('GoogleURL');
|
||||
@ -10,4 +10,4 @@ $this->googleurl->_initialize($apiKey);
|
||||
//for shortening
|
||||
echo $this->googleurl->shorten('http://www.google.com');
|
||||
//for expanding
|
||||
echo $this->googleurl->expand('http://googl.com/FgFHGf');
|
||||
echo $this->googleurl->expand('http://googl.com/FgFHGf');`
|
Loading…
x
Reference in New Issue
Block a user