Skip to content

Repository files navigation

TenorAPIKit

TenorAPIKit provides trending GIFs, trending tags, trending categories, GIF search, autocomplete results, and search suggestions from the Tenor API.

Requirements

  • iOS 15.0 or later

Installation

Installation from Xcode

Usage

importTenorAPIKit
letservice=TenorService()
service.getCategories(key: key){ categoryList in
/// Trending Category List
}
service.getTrendingGifs(key: key, limit:10, pos:nil){ tenorResults in
/// Trending Tenor Results
}
service.getTrendingTags(key: key, limit:10){ terms in
/// Trending Terms
}
service.searchGifs(key: key, searchKey:"love", limit:10, pos:nil){ results in
/// search results
}
service.getSearchSuggestions(key: key, searchKey:"smile", limit:10, pos:nil){ suggestions in
/// search suggestions
}
service.getAutocompleteTags(key: key, query:"exc", limit:5){ results in
/// autocomplete results
}

Note :

  • pos means pagination key. pos = "0" means no pagination exists. If pos is set as nil then pagination won't work.
  • Default API Key LIVDSRZULELA

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages