/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function getgoogl($longUrl){ //This is the URL you want to shorten $apiKey = 'AIzaSyDMgK9gpIIokl7ClMqMXHZQ7wv_xzRwMHs'; //Get API key from : http://code.google.com/apis/console/ //change the response json string to object return $json->id; } // call function getgoogl("http://www.longurlhere.com");
Comments
