title: How to update Google Sheets file with API PHP Client
body: <p>I've been taking a look at the <a href="https://github.com/google/google-api-php-client" rel="nofollow">Google API PHP Client</a> and would like to use it to add rows to a Google Sheet. From the code, it looks like one would use this method:</p>
  
  <pre><code>  public function insert($fileId, Google_Service_Drive_Property $postBody, $optParams = array())
    {
      $params = array('fileId' =&gt; $fileId, 'postBody' =&gt; $postBody);
      $params = array_merge($params, $optParams);
      return $this-&gt;call('insert', array($params), "Google_Service_Drive_Property");
    }
  </code></pre>
  
  <p>but I can't really tell what the parameters would be. Am I heading in the right direction? Also, not quite sure on how to connect to a specific Sheet. Please advise.</p>
  
  <p>Thanks!</p>