Кто-нибудь использовал функцию importRows() из API таблицы fusion? В качестве ссылки API ниже, https://developers.google.com/fusiontables/docs/v1/reference/table/importRows Я должен предоставить данные CSV в теле запроса. Но что я должен сделать для тела html точно?таблицы слияния importrows
Мой код:
http = getAuthorizedHttp()
DISCOVERYURL = 'https://www.googleapis.com/discovery/v1/apis/{api}/{apiVersion}/rest'
ftable = build('fusiontables', 'v1', discoveryServiceUrl=DISCOVERYURL, http=http)
body = create_ft(CSVFILE,"title here") # the function to load csv file and create the table with columns from csv file.
result = ftable.table().insert(body=body).execute()
print result["tableId"] # good, I have got the id for new created table
# I have no idea how to go on here..
f = ftable.table().importRows(tableId=result["tableId"])
f.body = ?????????????
f.execute()