code: def values(service, id, ranges):
      
      params = {'majorDimension': 'ROWS', 'valueRenderOption': 'UNFORMATTED_VALUE',
                'dateTimeRenderOption': 'FORMATTED_STRING'}
      params.update(spreadsheetId=id, ranges=ranges)
      response = service.spreadsheets().values().batchGet(**params).execute()
      return response['valueRanges']
docs: Fetch and return spreadsheet cell values with Google sheets API.