我对 Gspread 的 get_all_values() 有疑问
import json
import gspread
from oauth2client.client import SignedJwtAssertionCredentials
from gmail_variables import *
json_key = json.load(open('key7367.json'))
scope = ['https://spreadsheets.google.com/feeds']
credentials = SignedJwtAssertionCredentials(json_key['client_email'], json_key['private_key'], scope)
gc = gspread.authorize(credentials)
wks = gc.open_by_url('https://docs.google.com/a/test.com/spreadsheets/d/1-cAg..sLt5Ho/edit?usp=sharing')
recipients = wks.get_all_values()
我正在尝试编写一个电子邮件程序以从 Google 电子表格中提取。当我尝试运行它时;我得到了错误。
'Spreadsheet' object has no attribute 'get_all_values'
任何帮助表示赞赏。