【发布时间】:2017-10-04 00:42:37
【问题描述】:
我正在寻找一个示例(或信息,如果可能的话),将任务从 PHP 中的 Google Compute Engine 实例插入到 Google AppEngine 推送任务队列中。
基本上是怎么转的:
use google\appengine\api\taskqueue\PushTask;
$task = new PushTask('/worker', ['name' => 'john doe', 'action' => 'send_reminder']);
$task_name = $task->add();
变成可以在 GCE 实例上运行的东西。可以是https://github.com/google/google-api-php-client 或其他任何东西。
【问题讨论】:
标签: php google-app-engine google-compute-engine google-api-php-client