Php 403插入熔合表时禁止

Php 403插入熔合表时禁止,php,google-app-engine,google-api,google-fusion-tables,Php,Google App Engine,Google Api,Google Fusion Tables,我试图使用fusion table API V1将数据插入fusion table。我使用的代码是 <?php session_start(); $url = "https://www.googleapis.com/fusiontables/v1/query"; $Query = "INSERT INTO 1Vzqe-X-jEcU-YpOuZTtjW0xrVZfxZA44lsxPjPU (name, phone) VALUES ('Check', '2001')"; $postQuery

我试图使用fusion table API V1将数据插入fusion table。我使用的代码是

<?php
session_start();
$url = "https://www.googleapis.com/fusiontables/v1/query";
$Query = "INSERT INTO 1Vzqe-X-jEcU-YpOuZTtjW0xrVZfxZA44lsxPjPU (name, phone) VALUES ('Check', '2001')";
$postQuery = http_build_query(array('sql' => $Query));
$Headers = array('Authorization' => 'Bearer '.$_SESSION['access_token'], 'Content-type' => 'application/json');
$postHeaders = http_build_query($Headers);
$context =array("http"=>
        array(
            "method" => "POST",
            "content" => $postQuery,        
            "header" => $postHeaders
            ));         
$context = stream_context_create($context);
$ResultArray = file_get_contents($url, false, $context);
?>

搜索有时有助于找到一个如何进行搜索的示例。。。这个问题的答案是:$post=array(sql'=>Query,)$post=http\u build\u query($post)$context=array(“http”=>array(“method”=>“POST”,“content”=>$POST,“header”=>“Authorization:Bearer”。$”会话['access\u token',);$context=stream\u context\u create($context)$resultaray=file_get_contents($url,false,$context);?>我希望这将有助于寻找直接答案的人。