【发布时间】:2016-01-21 11:05:45
【问题描述】:
是否可以在 GAE 内部使用 PHP 调用 rest API 以将数据放入拉取队列? 我正在尝试调用 rest api 将数据放入拉队列,但出现错误
Array
(
[error] => Array
(
[errors] => Array
(
[0] => Array
(
[domain] => global
[reason] => forbidden
[message] => you are not allowed to make this api call
)
)
[code] => 403
[message] => you are not allowed to make this api call
)
)
【问题讨论】:
-
有可能,您所拥有的是
accessDenied错误。您的身份验证是否正确? -
作为身份验证,我从标头发送 API_KEY 和授权我的目标 URL:content.googleapis.com/taskqueue/v1beta2/projects/…
-
在本地机器上我的代码运行成功,但在 GAE 内部却没有运行
标签: php google-app-engine task-queue