Google PHP API Client & Fusion Tables: How to use importRows?

后端 未结 1 1166
悲&欢浪女
悲&欢浪女 2020-12-11 10:38

Version 0.6.3 of the Google API php Client appears to support the importRows command:

public function importRows($tableId, $optParams = array()) {
  $params          


        
相关标签:
1条回答
  • 2020-12-11 11:25

    I know this is a late reply, but for future reference, I will reply it anyway: You need to use the uploadType, mimeType and data on the optParams array.

    Example:

    importRows( [tableId], array(
     'uploadType' =>  'media' ,
     'mimeType' => 'application/octet-stream' ,
     'data'=>'1,Moth, 30, 2012')
    );
    
    0 讨论(0)
提交回复
热议问题