Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi,
I installed Tenor GIF Plugin and created an API Key for use.
However I get this when I type in any word. Any ideas @julian ? Anyone? Thanks in advance.
@Sampo2910 In my testing, I get the same issue.
Seems to work on this forum, what version of nodebb and plugin are you using?
@baris Both the NPM version, and directly from GitHub. @Sampo2910 is on the latest version, whilst I tested on 2.2.5 - we both get the same results.
2.2.5
This forum is running 2.3.1 and [email protected].
What result do you get when you load the tenor url directly https://api.tenor.com/v1/search?q=Happy&key=<tenor_key> ?
https://api.tenor.com/v1/search?q=Happy&key=<tenor_key>
@baris said in Tenor GIF:
https://api.tenor.com/v1/search?q=Happy&key
{"code": 16, "error": "API key invalid."}
Which is odd, because the key is in fact valid. Does the plugin work with v1 of the API, or v2 ? I think v1 is deprecated.
The plugin is using v1, maybe our key is for v1 as well. https://github.com/julianlam/nodebb-plugin-tenor-gif/blob/master/library.js#L59
@baris That makes sense. Can the plugin be adapted to also support v2 ?
I don't see v2 api docs here https://tenor.com/gifapi/documentation#quickstart-search. Where did you see v1 is deprecated?
@baris have a look at https://developers.google.com/tenor/guides/migrate-from-v1#update-v2-domains
The issue here is that the API generator only creates v2, and not v1.
"Go to the docs" is the v2 documentation.
For reference https://github.com/julianlam/nodebb-plugin-tenor-gif/issues/23
@baris @julian any update here please ?
EDIT - just tried it again, and it works
Thanks
@phenomlab @julian @baris
Also works for me now Nice Job. Thx.
Ah, sorry I didn't update the thread! Yes, I did update the plugin to use v2 of the Tenor API last week
As a bonus, it now also shows some trending gifs on initial load (or empty query)
@julian said in Tenor GIF:
Ah, sorry I didn't update the thread! Yes, I did update the plugin to use v2 of the Tenor API last week As a bonus, it now also shows some trending gifs on initial load (or empty query)
it does not work here in this forum... FYI...
@crazycells
Plugin works on NodeBB 2.4.4 and last version of the plugin:
Like the error message said, seems to be an Tenor API key not valid I guess...
@DownPW Yes, but it doesn't work here
@phenomlab Indeed... I think we're still passing a v1 key let me fix that up.
@julian