Last active
June 12, 2020 17:26
-
-
Save anuraj/78bea27f5c0dd884930407c24baf628e to your computer and use it in GitHub Desktop.
Azure Function - AI + Tweets
This file contains 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 characters
//Add reference of BitlyAPI package | |
public static async Task<string> CreateShortURL(string url) | |
{ | |
var bitly = new BitlyAPI.Bitly(BitlyKey); | |
var shortLink = await bitly.PostShortenLink(url); | |
return shortLink; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment