chingu-voyages / v24-geckos-team-02

Books Plus | Voyage-24 | https://chingu.io/
GNU General Public License v3.0
1 stars 1 forks source link

Do we need use Google Api? #12

Closed Guitarhub786 closed 3 years ago

Guitarhub786 commented 3 years ago

I have tested the google Api with and without a Google Api Key.

// A) Works without API key https://www.googleapis.com/books/v1/volumes?q=javascript

// B) Using with api https://www.googleapis.com/books/v1/volumes?q=javascript&key=AIzaSyD5zj2Y3Dqa17Yc7dADMXaF7BM7I9takjU

It seems that they both return the same results. Issue is: Can we get away with just using option A which would allow app to work out the box if people clone it in our repo. As option B would mean we would need to use .env variables in (Netlify).

mokokom commented 3 years ago

As reading the doc I think that it might be better to have an API key in order to have full services access provided by google (for example if we want to create a bookshelf for a user..)

mokokom commented 3 years ago

If we want to retrieve public bookshelve we don't need api key: Retrieving a list of volumes on a public bookshelf But if we want to retrieve books on "my library" then we obviously need an api key to authenticate: Retrieving a list of my bookshelves

ArunJose commented 3 years ago

Using an API key allows to make more requests before getting rate limited, even for simple search queries. As we need to make more complex requests, an API key may be required anyway.