Simple service to proxy api requests to third party services
This service is built as a Cloudflare Worker. Check out this guide if you are unfamiliar.
For development purposes, you will need to supply your own Tenor API key in .dev.vars
file. Have a look at this guide to get started working with Tenor api.
Interacting should be nearly identical to working with the third party API itself, but with limited functionality. It will only allow queries that are integral to the functionality required by Commet.
Requests may not share the exact same path as you might expect for a given api.
For example, the Tenor search api structures a request like so:
https://tenor.googleapis.com/v2/search?q=comet
Making this same request via this proxy would look like this:
https://proxy.commet.chat/proxy/tenor/api/v2/search?q=comet