· 9 years ago · Sep 15, 2016, 02:34 PM
1@FormUrlEncoded
2 @POST("users/{trans}")
3 Call<User> webSignUp(@Path("trans") String trans, @Field("device_id") String deviceId);
4
5 @FormUrlEncoded
6 @POST("users")
7 Call<User> signUp(@Field("full_name") String fullName, @Field("email") String email,
8 @Field("phone") String phone, @Field("password") String password);
9
10 /**
11 * @param checksum - md5 checksum of string (secret_key + md)
12 */
13 @FormUrlEncoded
14 @POST("oauth2/token")
15 Call<User> signIn(@Field("email") String email, @Field("password") String password,
16 @Field("checksum") String checksum, @Field("md") String timestampInSeconds,
17 @Field("device_id") String deviceId);