Interact with the Tenor API in an easy-to-use manner.
npm install tenor-clientsh
npm i tenor-client
yarn add tenor-client
pnpm add tenor-client
`
Usage
`js
// supports cjs/esm/ts
// cjs
const { TenorClient } = require("tenor-client");
// esm/ts
import { TenorClient } from "tenor-client";
const client = new TenorClient({
apiKey: "xxxxxxx-xxxxx_xxxxxxxxxxxxxxxxxxxxxxxxx", // required
clientID: "xxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com" // optional, this is your google project's client ID
})
client.search({ query: 'cute puppies' }).then(console.log);
client.searchSuggestions({ query: 'hello' }).then(console.log);
client.autocomplete({ query: 'hello' }).then(console.log);
client.featured().then(console.log);
client.categories().then(console.log);
client.trendingSearchTerms().then(console.log);
``