How i can use importRows Fusion Data Table in my project? [duplicate]

十年热恋 提交于 2019-12-11 16:21:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!