Как в google sheets api выводить только значение ячейки

У меня есть такой код:

from pprint import pprint

import json
import httplib2
import apiclient.discovery
from oauth2client.service_account import ServiceAccountCredentials

CREDENTIALS_FILE = 'creds.json'
spreadsheet_id = 'тут мой айди'

credentials = ServiceAccountCredentials.from_json_keyfile_name(
    CREDENTIALS_FILE,
    ['https://www.googleapis.com/auth/spreadsheets',
     'https://www.googleapis.com/auth/drive'])
httpAuth = credentials.authorize(httplib2.Http())
service = apiclient.discovery.build('sheets', 'v4', http=httpAuth)
otvet = service.spreadsheets().values().get(
    spreadsheetId=spreadsheet_id,
    range='A1:C1',
    majorDimension='ROWS'
).execute()
pprint(otvet)

В ответ я получаю вот что

{'majorDimension': 'ROWS',
 'range': "'Лист1'!A1",
 'values': [['Тут имя']]}

Как сделать так что бы выводилось только Тут имя

Спасибо!


Ответы (0 шт):