📜  python google docs api 如何获取文档索引 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:47.147000             🧑  作者: Mango

代码示例1
service = build('docs', 'v1', credentials=creds)
doc_id = ''

document = service.documents().get(documentId=doc_id).execute()
body = document['body']
content = body['content']
temp = content[len(content)-1]
endIndex = temp['endIndex']

# You might need to -1 off the endIndex