简体   繁体   English

如何在Google AppEngine中使用OAuth2来调用Java中的API

[英]How to use OAuth2 in Google AppEngine to call an API in java

I have a web application hosted in Google app engine and i need to handle some APIs (calendar). 我在Google App Engine中托管了一个Web应用程序,我需要处理一些API(日历)。 I need to authenticate the user via OAuth and to call an API. 我需要通过OAuth验证用户身份并调用API。

I'm going to guess you are talking about the Google Calendar API, since you didn't specify. 我猜您是在谈论Google Calendar API,因为您没有指定。 Information about using the Google Calendar API (in Java) is here . 有关使用Google Calendar API(使用Java)的信息,请点击此处 The document isn't specifically tailored to App Engine, but you can see some App Engine examples in the client library distribution. 该文档不是专门为App Engine量身定制的,但是您可以在客户端库分发中看到一些App Engine示例

You can try scribe-java . 您可以尝试scribe-java It works on GAE. 它适用于GAE。 Or maybe scribe-up which is an extension to it and supports getting user profiles out of the box. 也许是scribe-up ,它是对它的扩展,并且支持立即使用用户个人资料。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM