Ghost/ghost/admin/lib/koenig-editor/addon/components/koenig-card-image
arsereg cc276486f0 Updated Tenor API to v2 (#2418)
refs: https://github.com/TryGhost/Ghost/issues/14980
refs: https://github.com/TryGhost/Ghost/pull/15087

- The Tenor v1 API has been decommissioned https://developers.google.com/tenor/guides/migrate-from-v1
- Updated the API to v2, but there are some differences we have to account for 
- Swapped from using the old "trending" API to the new "featured" API, which at present seem to be the same thing
- Added a new client_key, which identifies the integration using the google API key, as google API keys can be used for multiple APIs and projects
-  Fixed up the error handling to support Google's error format, and also caught and replaced the error that everyone with old keys will see to make it clearer. This includes adding an htmlError property so that we can output HTML safely in the frontend.

There is still an active TODO with the naming of the config key, but we will resolve this after merging admin into the monorepo.

Co-authored-by: Hannah Wolfe <github.erisds@gmail.com>
2022-08-03 14:11:55 +01:00
..
selector-tenor Updated Tenor API to v2 (#2418) 2022-08-03 14:11:55 +01:00
selector-tenor.hbs Updated Tenor API to v2 (#2418) 2022-08-03 14:11:55 +01:00
selector-tenor.js Updated Tenor API to v2 (#2418) 2022-08-03 14:11:55 +01:00