Web 应用程序的日历实现
Calendar implementation to web app
我有一个网络应用程序(一项服务有两种类型的用户:医生和患者)。用户数据存储在数据库中。用户通过电子邮件和密码登录。
我需要为用户添加在他们的个人页面上拥有日历的可能性。每个用户都可以管理自己的日程安排。
一些问题:
一般来说,最好的方法是什么?有任何分步指南吗?
如果我使用 google 日历,是否有机会为整个服务(如日历数据库)提供一个 google 帐户。因此,用户不需要拥有自己的 google 帐户,并且有权仅根据服务帐户更改自己的日历。我阅读了一些信息 here 但不确定我的概念是否正确。
您可能希望参考此 documentation. You need a Python 2.4 or greater to provide a web server. The origin_mismatch
error will occur during the authorization flow if the host and port used to serve the web page doesn't match an allowed JavaScript origin on your Google Developers Console project. Make sure you completed the Step 1.e 并且浏览器中的 URL 匹配。
另外,如前所述here, every request your application sends to the Google Calendar API must include an authorization token. The token also identifies your application to Google. Your application must use OAuth 2.0 to authorize requests. No other authorization protocols are supported. If your application uses Google Sign-In,授权的某些方面已为您处理。
我有一个网络应用程序(一项服务有两种类型的用户:医生和患者)。用户数据存储在数据库中。用户通过电子邮件和密码登录。
我需要为用户添加在他们的个人页面上拥有日历的可能性。每个用户都可以管理自己的日程安排。
一些问题:
一般来说,最好的方法是什么?有任何分步指南吗?
如果我使用 google 日历,是否有机会为整个服务(如日历数据库)提供一个 google 帐户。因此,用户不需要拥有自己的 google 帐户,并且有权仅根据服务帐户更改自己的日历。我阅读了一些信息 here 但不确定我的概念是否正确。
您可能希望参考此 documentation. You need a Python 2.4 or greater to provide a web server. The origin_mismatch
error will occur during the authorization flow if the host and port used to serve the web page doesn't match an allowed JavaScript origin on your Google Developers Console project. Make sure you completed the Step 1.e 并且浏览器中的 URL 匹配。
另外,如前所述here, every request your application sends to the Google Calendar API must include an authorization token. The token also identifies your application to Google. Your application must use OAuth 2.0 to authorize requests. No other authorization protocols are supported. If your application uses Google Sign-In,授权的某些方面已为您处理。