我想添加OAuth到我的端点后端。作为“你好端点代码穿行”指出,这是足有以下几点:谷歌端点OAuth与Post方法
@ApiMethod(name = "greetings.authed", path = "hellogreeting/authed")
public HelloGreeting authedGreeting(User user) {
HelloGreeting response = new HelloGreeting("hello " + user.getEmail());
return response;
}
但是,如果方法是什么类型后,它包含了身体?我无法将用户和请求正文传递给方法。
如何使用包含请求正文的Post类型方法使用OAuth?
谢谢我刚刚发现AndroidStudio的lint检查器将其标记为错误,但它只是编译好。看起来像一个已知的bug。 – RSai