我如何在项目中使用importRows Fusion Data Table? [英] How i can use importRows Fusion Data Table in my project?

查看:57
本文介绍了我如何在项目中使用importRows Fusion Data Table?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有此代码:

    $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

推荐答案

鉴于PHP库的文档未确定如何传递要导入的数据,它可能使用

Given that the PHP library's documentation does not identify how the to-be-imported data is passed, it likely uses a standard parameter.

一些文档链接:
REST API PHP API客户端库

Some documentation links:
REST API, examples
PHP API Client Library

这篇关于我如何在项目中使用importRows Fusion Data Table?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆