Google books api always returns nothing

我只是一个虾纸丫 提交于 2019-12-11 16:48:34

问题


I am trying to use Google books API but for any request I receive totalItems = 0.

I've tried to send the request in chrome, for example:

https://www.googleapis.com/books/v1/volumes?q=flowers+inauthor:keyes&key=MY_KEY

Also I've tried the approach, described here:

https://github.com/google/google-api-java-client-samples/blob/master/books-cmdline-sample/src/main/java/com/google/api/services/samples/books/cmdline/BooksSample.java

And for any query with any parameters I always receive nothing:

{
 "kind": "books#volumes",
 "totalItems": 0
}

I generated key using developer console: https://console.developers.google.com and selected option Api Key.

I will appreciate any help with this issue.

Thanks in advance!


回答1:


As I've understood, the problem is in my country(Belarus). Looks like Google Books APi doesn't work in Belarus. Problem can be fixed by using VPN.



来源:https://stackoverflow.com/questions/48886400/google-books-api-always-returns-nothing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!