基于MS Graph365的应用程序开发的Python库
py365的Python项目详细描述
PY365
这是什么?
用于MS Graph365上应用程序开发的Python库
这个概念很简单-看看api文档和“复制”相同的结构。
虽然不是很“Python式的”(我猜-那到底是什么意思?),
很容易跟随和跟随:
打开official API reference
有什么好处?
如果你使用任何一种ms服务,你会发现通过代码实现自动化是释放it真正巨大能量的最佳方式。
虽然您可以使用.NET Core和其他服务,但是如果您只需要一些小的或不需要的脚本,那么使用Python编写脚本仍然非常方便。
目标python-3.6
因为这是azure无服务器引擎使用的版本。
如何使用?
$ pip install py365
# Graph365 is the main access point to the MS Graph# rsc is the graph resources we use to feed the graph APIfrompy365importGraph365,rsc#Connect to the tenantg365=Graph365(appId=config['app_id'],appSecret=config['app_secret'],tenantId=config['tenant_id'])# Create new user # API doc: https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0user=rsc.User(displayName="Steve J",userPrincipalName="steve.j@consotco.com")g365.users.createUser(newUser=user)
API实现
- [X]创建用户(部分)
- [X]获取用户(部分)
- [X]更新用户(部分)
- [X]发送电子邮件
- [X]邀请客人
接下来是什么?(自动取款机)
- []修改联机Excel
- []获取计划任务
- []添加单元测试