我似乎无法在下面的代码中设置token
。有人知道我在这里缺少什么吗?https://pypi.org/project/microsoftgraph-python/#description
Python代码:
from microsoftgraph.client import Client
client = Client('client_id', 'client_pass', account_type='by defect common', office365=True)
token = client.set_token(token)
me = client.get_me()
events = client.get_me_events()
print(events)
print(me)
结果:
^{pr2}$
token = client.set_token(token)
首先计算作业的右侧。
token
没有在代码中的任何地方定义,因此它是一个未定义的名称。在相关问题 更多 >
编程相关推荐