def _get_spreadsheet_headers(client, spreadsheet_key, worksheet_id):
 headers = []
 query = CellQuery()
 query.max_row = '1'
 query.min_row = '1'
 feed = client.GetCellsFeed(spreadsheet_key, worksheet_id, query=query, visibility='public', projection='values')
 while True:
  for entry in feed.entry:
   headers.append(entry.content.text)
  next_link = feed.GetNextLink()
  if next_link:
   feed = client.Get(next_link.href, converter=SpreadsheetsCellsFeedFromString)
  else:
   break
 return headers

def _get_spreadsheet_headers ( client , spreadsheet_key , worksheet_id ) : headers = [ ] query = CellQuery ( ) query . max_row = '1' query . min_row = '1' feed = client . GetCellsFeed ( spreadsheet_key , worksheet_id , query = query , visibility = 'public' , projection = 'values' ) while True : for entry in feed . entry : headers . append ( entry . content . text ) next_link = feed . GetNextLink ( ) if next_link : feed = client . Get ( next_link . href , converter = SpreadsheetsCellsFeedFromString ) else : break return headers
returns a list of headers .