Giter Club home page Giter Club logo

office-e5's Introduction

通过官网提供的SDK和GitHub Action 实现自动化调用API 官网SDK地址

前提:

已经加入了Microsoft 365 开发人员计划 链接

使用:

由于需要储存密码,如果担心默认管理员账号安全性可以新建一个专用于设置自动续期的账户(小号)。

这个小号需要先设置为全局管理员以方便操作,直到完成所有第2部分的步骤。

完成所有步骤并且测试运行后可以在E5-Office控制面板取消该账号全局管理员,自动续订依然能正常运行

  1. 登录到Microsoft Azure 链接
  2. 注册新应用,新建客户端密码,跟着图片操作,其中 1 2 3 要记下来

image-20201220181608269

image-20201220181906371

image-20201220182210469

image-20201220182857805

image-20201220183358551

image-20201220183519522

image-20201220183623883

image-20201220183801992

image-20201220183854762

  1. 在GitHub仓库中添加 secrets
name secrets No.
CLIENT_ID 应用程序(客户端) ID 1
CLIENT_SECRET 证书和密码中的"客户端密码" 3
TENANT_GUID 目录(租户) ID 2
USERNAME 登录Microsoft Azure的账号([email protected])
PASSWORD 登录Microsoft Azure的密码
TOKEN GitHub Token

其中的 TOKEN 获取在GitHub Setting -> Developer settings -> Personal access tokens 中获取,用于更新日志
或者点击这里新建一个 Personal access token,命名随意

image-20201220190941252

image-20201220191133945

在项目中的 setting 里面添加

image-20201220184333113

  1. 修改 .github/workflows中的main.yml,修改成自己的用户名和邮箱

image-20210124211449573

  1. 最后必须要自己 star 一下才会开始运行,测试的的时候只要点两次就好了(取消star,然后再star)

本地

main.md 中的代码替换 Main.class 中的代码,并把在 resources 目录中的 officeE5.properties 文件中的值替换成自己的

参考链接

yml文件配置

Microsoft Graph SKDK 邮件API

office-e5's People

Contributors

standardl avatar merrycodes avatar georgedong32 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.