Square-connect 示例函数给出“.then 不是函数”错误
Square-connect example function gives a ".then is not a function" error
安装 square-connect 和 运行 测试代码后,我看到:
api.listLocations.then 不是函数
节点-v
v9.4.0
安装说明中没有我需要做什么特别的事情吗?
您阅读的示例代码中存在错误(感谢您提醒我们注意!)。每当 this pull request 合并时,它都会被修复。
您应该使用 api.listLocations().then(function(data) {
而不是 api.listLocations.then(function(data) {
安装 square-connect 和 运行 测试代码后,我看到:
api.listLocations.then 不是函数
节点-v v9.4.0
安装说明中没有我需要做什么特别的事情吗?
您阅读的示例代码中存在错误(感谢您提醒我们注意!)。每当 this pull request 合并时,它都会被修复。
您应该使用 api.listLocations().then(function(data) {
api.listLocations.then(function(data) {