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


version 0.6.3 of google api php client appears support importrows command:

public function importrows($tableid, $optparams = array()) {   $params = array('tableid' => $tableid);   $params = array_merge($params, $optparams);   $data = $this->__call('importrows', array($params));   if ($this->useobjects()) {     return new google_import($data);   } else {     return $data;   } } 

the importrows documentation doesn't coincide way function has been implemented in php client, there doesn't appear anywhere pass csv information too.

does have example code using google api php client 0.6.3 implementing importrows?

i have implementation working service account entering 1 row @ time. i'd prefer in bulk rather loop through 'insert' or 'sql'.

i know late reply, future reference, reply anyway: need use uploadtype, mimetype , data on optparams array.

example:

importrows( [tableid], array(  'uploadtype' =>  'media' ,  'mimetype' => 'application/octet-stream' ,  'data'=>'1,moth, 30, 2012') ); 

Comments