Google calendar api 谷歌日历v3的两条腿oauth

Google calendar api 谷歌日历v3的两条腿oauth,google-calendar-api,google-api-java-client,google-api-client,google-apps-marketplace,2-legged,Google Calendar Api,Google Api Java Client,Google Api Client,Google Apps Marketplace,2 Legged,我正在使用Google Calendar REST API的第3版(使用HttpClient),它工作正常。同样地,我必须使用V3 Google Calendar的web API,因为我的应用程序在Google Apps marketplace中。如何在V3谷歌日历API中继续使用两条腿的OAuth。任何帮助都将不胜感激 提前感谢,, Riyaz Ashraf。发布您正在使用的代码。@Shail我正在使用下面的代码进行身份验证HttpTransport=new NetHttpTransport(

我正在使用Google Calendar REST API的第3版(使用HttpClient),它工作正常。同样地,我必须使用V3 Google Calendar的web API,因为我的应用程序在Google Apps marketplace中。如何在V3谷歌日历API中继续使用两条腿的OAuth。任何帮助都将不胜感激

提前感谢,,
Riyaz Ashraf。

发布您正在使用的代码。@Shail我正在使用下面的代码进行身份验证HttpTransport=new NetHttpTransport();JsonFactory JSON_FACTORY=新JacksonFactory();GoogleAuthorizationCodeGrant authRequest=新的GoogleAuthorizationCodeGrant();authRequest.transport=传输;authRequest.jsonFactory=JSON\u工厂;authRequest.clientId=客户端ID;authRequest.clientSecret=客户端\u密码;authRequest.redirectUri=重定向URL;authRequest.code=code;authRequest.useBasicAuthorization=false;AccessTokenResponse authResponse=authRequest.execute();我成功地得到了响应。您应该从两条腿的OAuth转移到基于OAuth2的服务帐户。有一个很好的writeup,它类似于为日历实现它。另外,请注意,我们为谷歌应用程序市场()发布了新体验。我们也有新的。请说明“2腿OAuth”的意思是否与这里描述的相同:或者不是。在这个网站上,“双腿”OAuth指的是使用
服务帐户
对用户的行为进行操作。