How i can use importRows Fusion Data Table in my p

2019-08-24 16:25发布

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

1条回答
贪生不怕死
2楼-- · 2019-08-24 17:11

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

查看更多
登录 后发表回答