This question already has an answer here:
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
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