问题
I have this code:
$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);
I looked in the documentation, but could not find the reference
回答1:
Given that the PHP library's documentation does not identify how the to-be-imported data is passed, it likely uses a standard parameter.
Some documentation links:
REST API, examples
PHP API Client Library
来源:https://stackoverflow.com/questions/48897888/how-i-can-use-importrows-fusion-data-table-in-my-project