Tag: google api webmasters

Google网站pipe理员NodeJs API了解响应

我试图了解当我尝试使用Google Webmasters API运行查询时收到的响应。 我没有得到一个错误,因为console.log返回null ,但是我收到了Not Found res参数,这使得它似乎有什么closures与传递给查询方法的params对象。 当我看着网站pipe理员的github文件 ,似乎我正确的顺序通过正确的领域,但一定要closures。 任何人都可以提供一些关于如何进一步debugging的指导,或者我的对象键值对清楚地说明了什么地方。 这是我的控制台: This is the error: null This is the response: Not Found 这里是这个问题的代码: /** * Lists the search query results * * @param {google.auth.OAuth2} auth An authorized OAuth2 client. */ function keywordQuery(auth) { console.log("This is the auth token" + auth); var webmasters = google.webmasters('v3'); var […]