Using Google Calendar API V3 with .net framework 3.5

久未见 提交于 2020-01-02 19:28:13

问题


I am using a Web application which uses .Net 3.5 framework. It uses the Google calendar API V1.

When searched in google forums it was found that the Google calendar API V1 & V2 are deprecated and should use V3.

Google Calendar API V3 platform support is .NET Framework 4 and 4.5

So should our application be upgraded to .NET framework 4 or 4.5 ?

Or is there is any solution for using google calendar API in .Net 3.5 framework ?


回答1:


Question: Google Calendar API V3 platform support is .NET Framework 4 and 4.5
Anwser / comment : This is incorrect the Google Calendar API V3 is a rest API and supports any programing language that can do a HTTP Post or HTTP Get. The Current version of the Google .Net Client library how ever only supports .Net Framework 4 and 4.5.

  1. Install-Package Google.Apis.Calendar.v3
  2. Client library on GitHub

Question: So should our application be upgraded to .NET framework 4 or 4.5 ?
Anwser : Yes if you want to use Googles client library, which I recommend. You should upgrade to .net Framework 4 or 4.5. I would go with 4.5 if you can.

Question: Is there is any solution for using google calendar API in .Net 3.5. framework ?
Anwser: Yes you can code the whole thing yourself like I said its just HTTP Posts and HTTP Gets. The hardest part of this will be the authentication, but you should be able to rip some of the code from the client library. I have a couple of old tutorials I made back when I was doing this with the Google Analytics API. The idea is the same.

  1. Old tutorial on how to do it hasn't been updated in ages sorry. Google APIs and Oauth2
  2. Google Oauth2 flow


来源:https://stackoverflow.com/questions/30364987/using-google-calendar-api-v3-with-net-framework-3-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!