asimlqt / php-google-spreadsheet-client

A PHP library for accessing and manipulating Google Spreadsheets
Other
544 stars 152 forks source link

getListFeed by cell or column? #130

Closed mmikhan closed 8 years ago

mmikhan commented 8 years ago

Hi, I just wanted to know if is there any method or way to get the list feed by specifying a cell or column? The getCell() method isn't working for me and can't find any documentation that says about the getCell() method. Please, can anyone help?

asimlqt commented 8 years ago

Hi, I'm not sure what you mean, can you provide a sample spreadsheet with an example of what you're trying to achieve?

A list feed returns an array for each row in the spreadsheet. You can't retrieve a list feed from a cell.

mmikhan commented 8 years ago

Apologies if the above message doesn't make sense. I would just like to get content from specific column/cell. In that case, how may I achieve this?

asimlqt commented 8 years ago

If you want to get a specific cell then use CellFeed, you can get any cell in the worksheet.

There is no builtin way to retrieve a column so you'll just have to iterate over the List feed and get the value of that column.

I'm working on some improvements currently so I might add a way to retrieve a column :)