我有这段代码:
$out = fopen('php://output', 'w');
fputcsv($out,
array('Location')
);
foreach($objects as $object){
fputcsv($out,
array(
$ad->objectLat.",".$ad->objectLnt,
)
);
}
$test = fclose($out);
$client = new Google_Client();
$client->useApplicationDefaultCredentials();
$client->setScopes('https://www.googleapis.com/auth/fusiontables');
$service = new Google_Service_Fusiontables($client);
$service->table->importRows($test);
我查看了文档,但找不到参考
答案 0 :(得分:0)
鉴于PHP库的文档没有确定如何传递要导入的数据,它可能使用standard parameter。
一些文档链接:
REST API,examples
PHP API Client Library