How to make CalendarService object using access_token?

后端 未结 4 1116
我寻月下人不归
我寻月下人不归 2020-12-18 06:06

I am trying to use google calendar v3 api using .net client. I am follwing a hybrid approach. I have authorized my application using oauth2 using only http post request and

4条回答
  •  无人及你
    2020-12-18 06:21

    Your solution should look very similar to this one: .NET Google api 1.7 beta authenticating with refresh token

    Remember to set the ExpiresInSeconds and Issued properties, so the library won't think that the access_token has expired (https://code.google.com/p/google-api-dotnet-client/source/browse/Src/GoogleApis.Auth/OAuth2/Responses/TokenResponse.cs#66)

提交回复
热议问题