0

pull queue でデータを挿入するために google-api-php-client を使用していますが、エラーが発生しています

エラー : 致命的なエラー: 例外「google\appengine\runtime\CurlLiteOptionNotSupportedException」がキャッチされず、「オプション 20056 はこの curl 実装ではサポートされていません」というメッセージが表示されました。/base/data/home/runtimes/php/sdk/google/appengine/runtime/CurlLite.php:487 でスタック トレース: #0 /base/data/home/runtimes/php/sdk/google/appengine/runtime/CurlLite .php(215): google\appengine\runtime\CurlLite->setOption(20056, NULL) #1 /base/data/home/runtimes/php/sdk/google/appengine/runtime/CurlLiteStub.php(1325): google \appengine\runtime\CurlLite->setOptionsArray(Array) #2 /base/data/home/runtimes/php/sdk/google/appengine/runtime/CurlLiteStub.php(1319): curl_setopt_array(Object(google\appengine\runtime\ CurlLite)、配列) #3 /base/data/home/apps/s~apigraymatics/1.

私のコードは次のとおりです。

require_once 'google-api-php-client/vendor/autoload.php';



$credentials_file = "file.json";
$client = new Google_Client();
$client->setScopes(['https://www.googleapis.com/auth/taskqueue']);
$client->setAuthConfig($credentials_file);  // This is your service account JSON key you need to export from the Developers Console
$project ='s~<project-name>';
$taskqueue ='<task-queue-name>';

$optParams = array();
$service = new Google_Service_Taskqueue($client);
$updated = new Google_Service_Taskqueue_Task($client);
$updated->getPayloadBase64('aGVsbG8=');
//$params = array('project' => $project, 'taskqueue' => $taskqueue, 'postBody' => $postBody);
$results = $service->tasks->insert($project,$taskqueue,$updated);
print_r($results);
4

0 に答える 0