Search code examples
phpzend-frameworkgdatagdata-api

Zend Gdata Spreadsheet insertRow throwing HttpException


I am trying to insert a row in a worksheet using Zend_Gdata_Spreadsheets with the following code:

$gdClient->insertRow(array('a'=>'gggggg','b'=>'hhhhh'), $currKey, $currWkshtId);

Both $currKey and $currWkshtId are correct, but it returns this error:

Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 400. We're sorry, a server error occurred. Please wait a bit and try reloading your spreadsheet.'

Does anyone know what the cause of this error is and how I can solve it?


Solution

  • This is because I need to put header name in a worksheet columns.

    Anyone know if they have any name by default? or is possible referenciate the column in another way?