Hey guys,
I’m working on an app and I need to shorten the URL`s. I’m trying to make the google-url-shortener(http://www.yiiframework.com/extension/google-url-shortener/) work. But I’m not getting any response.
Here’s my setup:
main.php
'shorturl' => array(
'class' => 'ext.shorturl.ShortUrl',
'apiKey' => '************************',
),
Action:
$shortlink = Yii::app()->shorturl->short("http://www.google.com");
echo "<script>alert('$shortlink');</script>";
The alert jumps out empty and Google Shortener log doesnt show any calls to it.
Do you guys have any ideas?
*This is based on a local WAMP machine.