相关疑难解决方法(0)

改造:如何使用常量字段发送POST请求?

我想发送一个带有一个实际参数的简单POST请求:

@POST("/token")
@FormUrlEncoded
void extendSession(@Field("refresh_token")final String refreshToken);
Run Code Online (Sandbox Code Playgroud)

但这一要求也应该发送服务器,例如要求一些常数值client_id,client_secretgrant_type这是不变的,不应该是应用程序API的一部分.

做这个的最好方式是什么?

java android http http-post retrofit

14
推荐指数
1
解决办法
8416
查看次数

标签 统计

android ×1

http ×1

http-post ×1

java ×1

retrofit ×1