【文件属性】:
文件名称:google-calendar-api-node
文件大小:221KB
文件格式:ZIP
更新时间:2021-03-07 00:57:17
TypeScript
开始使用
git clone
cd google-calendar-api-node
npm安装
添加.env文件和以下环境变量GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
REDIRECT_URI=
WEBHOOK_URL=
npm run dev(用于开发)
npm run build && npm start(用于生产)
过程
如果在服务器端未找到用户记录。 它将在命令行应用程序中提供一个URL来提示登录。
用户需要在浏览器中访问该URL并登录。 用户需要为其日历授予权限。
登录后,数据将存储在服务器中。 并且不会再次提示用户登录。
成功登录后,您可以调用任何日历功能。
可以在docs / index.html文件中找到功能列表。
删除用户
要从数据库中删除用户,只需从tokens.json文件中删除creds密钥即可。
因此,您的
【文件预览】:
google-calendar-api-node-master
----server.csr(2KB)
----docs()
--------assets()
--------modules.html(4KB)
--------index.html(3KB)
--------interfaces()
--------modules()
----package.json(2KB)
----.eslintrc.json(822B)
----jest.config.js(132B)
----tests()
--------example.spec.ts(132B)
----package-lock.json(402KB)
----src()
--------constants()
--------controllers()
--------calendar()
--------index.ts(4KB)
--------router()
----tsconfig.json(588B)
----db.json(453B)
----server.pass.key(3KB)
----.gitignore(91B)
----tokens.json(453B)
----README.md(1013B)
----tsoa.json(276B)
----.eslintignore(18B)
----nodemon.json(79B)
----webhooks.md(4KB)
----server.key(3KB)