Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 1.33 KB

README.md

File metadata and controls

65 lines (51 loc) · 1.33 KB

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

import TenorAPIKit
let service = 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