BloomTech-Labs / betterreads-ds

MIT License
1 stars 3 forks source link

Google Books Search Query #33

Closed michael-rowland closed 4 years ago

michael-rowland commented 4 years ago

https://github.com/Lambda-School-Labs/betterreads-ds/blob/235415c7684ea23f9a25e55690f9b12886c720ab/readrr_api/route_tools/gb_search.py#L30

I ran into an issue when I declare the search method when instantiating this class, the search method is at the end of the request.

For example:

gb = GBWrapper(method='isbn')
gb.search('9781524763138')

This request made from above, as it is written now : https://www.googleapis.com/books/v1/volumes?q=9781524763138isbn The correct request: https://www.googleapis.com/books/v1/volumes?q=isbn:9781984801258 Per the Google Books API Documentation here.