Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/halomakes/tenorclient
.NET Standard 2.0 client for interacting with the Tenor API with full async support
https://github.com/halomakes/tenorclient
api-client async dotnet gif netstandard20 nuget tenor tenor-api
Last synced: 6 days ago
JSON representation
.NET Standard 2.0 client for interacting with the Tenor API with full async support
- Host: GitHub
- URL: https://github.com/halomakes/tenorclient
- Owner: halomakes
- License: mit
- Created: 2020-08-04T00:04:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T11:07:40.000Z (about 2 years ago)
- Last Synced: 2023-08-26T19:03:09.982Z (over 1 year ago)
- Topics: api-client, async, dotnet, gif, netstandard20, nuget, tenor, tenor-api
- Language: C#
- Homepage: https://tenor-client.halomademeapc.com
- Size: 469 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tenor Client
[![Build Status](https://img.shields.io/travis/halomademeapc/TenorClient?style=flat-square)](https://travis-ci.org/github/halomademeapc/TenorClient) [![GitHub issues](https://img.shields.io/github/issues/halomademeapc/TenorClient?style=flat-square)](https://github.com/halomademeapc/TenorClient/issues) [![Nuget](https://img.shields.io/nuget/dt/TenorClient?style=flat-square)](https://www.nuget.org/packages/TenorClient/) [![Nuget](https://img.shields.io/nuget/v/TenorClient?style=flat-square)](https://www.nuget.org/packages/TenorClient/)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](https://www.nuget.org/packages/TenorClient/).```bash
dotnet add package TenorClient
``````csharp
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");
```