Unofficial Emojipedia.org API for .NET written in C#.
Dependencies:
Currently retrieves:
- Emoji (as string)
- Unicode Name
- Apple Name
- "Also Known As" names
- Emoji Description
- URL to the Emojipedia page
Examples:
Retrieve emoji by name:
private static void Main()
{
var searcher = new EmojiSearcher();
var results = searcher.Search("smile");
if(results.Length > 0){
var desiredResult = results[0];
Console.WriteLine(desiredResult.Emoji);
var info = desiredResult.getEmojiInfo();
Console.WriteLine(info.Description);
}
else
Console.WriteLine("No search results returned.");
}
Retrieve random emoji:
private static void Main()
{
var searcher = new EmojiSearcher();
var emojiInfo = searcher.Random();
Console.WriteLine(emojiInfo.Emoji);
Console.WriteLine(emojiInfo.Description);
}