google-url-shortener - Not recieving any response

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( work. But I’m not getting any response.

Here’s my setup:


'shorturl' => array(

'class' => 'ext.shorturl.ShortUrl',

'apiKey' => '************************',



$shortlink = Yii::app()->shorturl->short("");				

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.

so apparently the calls cant happen from the local machine. You gotta send the app to your actual server to test it.