Skip to content

Instantly share code, notes, and snippets.

@anuraj
Last active June 12, 2020 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anuraj/78bea27f5c0dd884930407c24baf628e to your computer and use it in GitHub Desktop.
Save anuraj/78bea27f5c0dd884930407c24baf628e to your computer and use it in GitHub Desktop.
Azure Function - AI + Tweets
//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