Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http client deprecation warning #12

Open
Peter-MJ-Parker opened this issue Jan 25, 2022 · 2 comments
Open

http client deprecation warning #12

Peter-MJ-Parker opened this issue Jan 25, 2022 · 2 comments

Comments

@Peter-MJ-Parker
Copy link

[email protected] has been deprecated, please use other http client.
Will this be fixed, or is TenorJS no longer maintained?
image
image

@asciidude
Copy link

TenorJS seems to be no longer maintained.

I suggest just using axios. Really simple, no need for a node module for this API.

        const q = await axios.get(
            'https://g.tenor.com/v1/search' +
            '?q=query_here' +
            `&key=${process.env.TENOR_API_KEY}` +
            '&limit=25' +
            `&contentfilter=${process.env.TENOR_FILTER_STATUS}`
        );

API Reference

@asciidude
Copy link

asciidude commented Oct 10, 2022

Actually, DO NOT use v1!

Didn't realize it was outdated. Here's a link for migrating my code

...and here's the endpoints

Sorry about that lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants