Skip to content

.NET Standard 2.0 client for interacting with the Tenor API with full async support

License

Notifications You must be signed in to change notification settings

halomakes/TenorClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TenorClient Logo

Tenor Client

Build Status GitHub issues Nuget Nuget

Client for interacting with the Tenor API targetting .NET Standard 2.0. Includes async support and pretty models.

Quick Start

You can get TenorClient from NuGet.

dotnet add package TenorClient
var config = new TenorConfiguration {
    ApiKey = "MY_API_KEY",
    Locale = CultureInfo.GetCultureInfo("en"),
    ContentFilter = ContentFilter.Medium,
    MediaFilter = MediaFilter.Minimal,
    AspectRatio = AspectRatio.All
};
var client = new TenorClient(config);
var searchResults = await client.SearchAsync("potato", limit: 20);
var categories = await client.GetCategoriesAsync();
var suggestions = await client.GetSearchSuggestionsAsync("potato");