Skip to content

Instantly share code, notes, and snippets.

@aashish
Created May 16, 2015 13:48
Show Gist options
  • Save aashish/d42700b820de911c9c67 to your computer and use it in GitHub Desktop.
Save aashish/d42700b820de911c9c67 to your computer and use it in GitHub Desktop.
google url shortener
curl https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBm7qeH-ey9sycnGi1sy8Barqm5f1E_ESU -H 'Content-Type: application/json' -d '{"longUrl": "http://www.google.com/"}'
{
"kind": "urlshortener#url",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment