Skip to content

Instantly share code, notes, and snippets.

View hayageek's full-sized avatar

Ravishanker Kusuma hayageek

View GitHub Profile
@hayageek
hayageek / Google URL Shortener API
Last active May 21, 2019 11:57
Google URL Shortener API Javascript Example
<html>
<head>
</head>
<script type="text/javascript">
function makeShort()
{
var longUrl=document.getElementById("longurl").value;
var request = gapi.client.urlshortener.url.insert({
'resource': {
'longUrl': longUrl
int main()
{
return 0;
}