Last active
November 28, 2017 19:24
-
-
Save sketchthat/ae60aece1c5c7e7932e65c2519518dd8 to your computer and use it in GitHub Desktop.
Revisions
-
sketchthat renamed this gist
Sep 6, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
sketchthat renamed this gist
Sep 6, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
sketchthat created this gist
Sep 6, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ // Generate Access Token // https://bitly.com/a/oauth_apps var shortenUrl = function(accessToken, longUrl) { $.getJSON('https://api-ssl.bitly.com/v3/shorten', { access_token: accessToken, longUrl: longUrl }) .success(function(resp) { console.log('URL: ', resp.data.url); }) .error(function(err) { console.error(err); }); };