我正在做一个小应用程序,使用Google Books API对标题书进行一些研究。
如果我在没有API键的情况下执行此操作,则其工作方式如this(请点击,查看回复)。
有第一个问题:
我正在做一个php(symfony 3)HTTP 'GET'
请愿......我收到了这个...但我不知道它是String
而不是json
所以,我尝试了encode
和decode
这个......没有任何作用......它仍然是String
有什么想法吗?
另一方面,我认为可能是因为我没有使用Google API键,I did it with the APIkey但我收到此错误:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Books API has not been used in project 590805047596 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/books/overview?project=590805047596 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/books/overview?project=590805047596"
}
],
"code": 403,
"message": "Access Not Configured. Books API has not been used in project 590805047596 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/books/overview?project=590805047596 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
但是我很久以前就把它激活了......而且我试图创造另一个...... 所以...
为什么我无法将String
转换为json
中的php
?
为什么我的Google API密钥没有权限?
任何问题的解决方案?
非常感谢每位读者! 祝你有个愉快的一天。
维克多