americanbible / api-bible-js-demo

Sample Javscript Application using API.Bible
20 stars 16 forks source link

Discord bot integration #20

Open kfahn22 opened 1 year ago

kfahn22 commented 1 year ago

Hi, I would like add an option into Discord bot I have created to allow my Bible study members to request verses (it would be in a server with just my Bible study). When making the data requests to other sites, the API is included in the url. Is there a way to do that with your API? I would like to do something like this, hiding the api key in the .env file:

const response = await request(https://tenor.googleapis.com/v2/search?q=excited&key=${process.env.tenor_key}&limit=8);

Thanks!

bryceallison commented 1 year ago

We recommend using an intermediary server or lambda as a proxy to the API so you can protect the API key.

kfahn22 commented 1 year ago

Thanks for your reply!

On Wed, Jan 11, 2023 at 10:57 AM Bryce Allison @.***> wrote:

We recommend using an intermediary server or lambda as a proxy to the API so you can protect the API key.

— Reply to this email directly, view it on GitHub https://github.com/americanbible/api-bible-js-demo/issues/20#issuecomment-1379018054, or unsubscribe https://github.com/notifications/unsubscribe-auth/APQ2Y4W3QS5QCSCYDDMGJX3WR3J6LANCNFSM6AAAAAATVX34WI . You are receiving this because you authored the thread.Message ID: @.***>