if ($entry instanceof Zend_Gdata_Spreadsheets_ListEntry) { echo "Success!\n"; $response = $entry->save(); } } /** * stringToArray * * @param string $rowData * @return array */ public function stringToArray($rowData) { $arr = array(); foreach ($rowData as $row) { $temp = explode('=', $row); $arr[$temp[0]] = $temp[1]; } return $arr; } } /** * Returns a HTTP client object with the appropriate headers for communicating * with Google using AuthSub authentication. * * Uses the $_SESSION['sessionToken'] to store the AuthSub session token after * it is obtained. The single use token supplied in the URL when redirected * after the user succesfully authenticated to Google is retrieved from the * $_GET['token'] variable. * * @return Zend_Http_Client