Google Calendar V3 hangs when used outside local environment

前端 未结 3 522
失恋的感觉
失恋的感觉 2021-01-26 07:46

I\'m working on a wrapper for the .net version of the Google Calendar API. The authentication is rather simple and working fine locally (localhost:port).

UserCr         


        
3条回答
  •  不知归路
    2021-01-26 08:37

    First of the all: See Google MVC tutorial

    Step by step

    1) Create method in your controller:

     public async Task Test()
        {
             //your code
        }
    

    2) Create controller :

    public class AuthCallbackController : Google.Apis.Auth.OAuth2.Mvc.Controllers.AuthCallbackController
        {
            protected override Google.Apis.Auth.OAuth2.Mvc.FlowMetadata FlowData
            {
                get { return new AppFlowMetadata(); }
            }
        }
    

    3) Configure Google Console

提交回复
热议问题