tenor-fetch
v1.0.2
Published
Unofficial library for the Tenor API
Downloads
3
Readme
tenor-fetch
A library that lets you access the Tenor API. What's Tenor? A GIF search engine.
Rad?
Yeah. Totally rad.
Also, you should totally check out my rad start-up, Tutturu.tv 👏
Installation
npm install --save tenor-fetch
Getting started
You'll need an API key from Tenor: https://tenor.com/gifapi
const TenorFetch = require('tenor-fetch');
const tf = new TenorFetch('YOUR-TENOR-API-KEY');
// Search "smug anime" on Tenor
tf.search('smug anime').then(console.log);
// Find trending GIFs on Tenor
tf.trending().then(console.log);
API
Check out the endpoints here: https://tenor.com/gifapi/documentation#endpoints
This project is written in TypeScript so you can let IntelliSense guide you.
The library is pretty straightforward: if you're lost just glance at the source.
Tests
npm run test
Contributing
Before you make a merge request, please:
- Run
npm run lint
andnpm run format
- Ensure all existing tests pass
- Add tests for your additions (if applicable)
Thanks! 💖
Acknowledgements
Inspired from @giphy/js-fetch-api.
I try my best to match the API. We have promises, but I can't promise you anything (haha).
Regarding the source code, I'm a total noob and I just followed the instructions here. Sorry.