正在查看: 哔哩哔哩 v1.6.6 应用的 BiliAuthService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 哔哩哔哩 v1.6.6 应用的 BiliAuthService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bilibili.lib.passport;
import android.support.annotation.Keep;
import android.support.annotation.NonNull;
import bl.mk;
import bl.ml;
import bl.vd;
import bl.vp;
import com.alibaba.fastjson.JSONObject;
import com.bilibili.api.base.util.ParamsMap;
import com.bilibili.okretro.GeneralResponse;
import java.util.List;
import retrofit2.http.BaseUrl;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
@Keep
@BaseUrl(a = "https://passport.bilibili.com")
public interface BiliAuthService {
@FormUrlEncoded
@POST(a = "/api/tv/qrcode/check")
vp<GeneralResponse<QRAuthCode>> QRAuthCode(@Field(a = "auth_code") String str, @Field(a = "guid") String str2);
@FormUrlEncoded
@POST(a = "/x/passport-tv-login/qrcode/poll")
vp<GeneralResponse<vd>> QRAuthCodeNew(@Field(a = "auth_code") String str);
@GET(a = "/api/tv/qrcode/auth_code")
vp<JSONObject> QRAuthUrl();
@POST(a = "/x/passport-tv-login/qrcode/auth_code")
vp<JSONObject> QRAuthUrlNew();
@GET(a = "/api/oauth2/accessToken?grant_type=authorization_code")
vp<GeneralResponse<vd>> QRSign(@Query(a = "code") String str);
@GET(a = "/api/v2/oauth2/access_token")
vp<GeneralResponse<mk>> acquireAccessToken(@Query(a = "code") String str, @Query(a = "grant_type") String str2);
@FormUrlEncoded
@POST(a = "/api/oauth2/authorizeByApp")
vp<GeneralResponse<AuthorizeCode>> authorizeByApp(@Field(a = "access_token") String str, @Field(a = "target_subid") String str2, @Field(a = "target_appkey") String str3, @Field(a = "package") String str4, @Field(a = "signature") String str5);
@GET(a = "/api/member/bindPhone")
vp<GeneralResponse<Void>> bindPhone(@Query(a = "tel") String str, @Query(a = "country_id") String str2, @Query(a = "captcha") String str3, @Query(a = "access_key") String str4);
@POST(a = "/api/oauth2/getKey")
vp<GeneralResponse<AuthKey>> getKey();
@GET(a = "/x/passport-tv-login/key")
vp<GeneralResponse<AuthKey>> getKeyNew();
@GET(a = "/api/v2/oauth2/info")
vp<GeneralResponse<OAuthInfo>> oauthInfo(@Query(a = "access_token") String str, @QueryMap CookieParamsMap cookieParamsMap);
@GET(a = "/api/tv/auth")
vp<GeneralResponse<OAuthInfo>> oauthTvInfo(@Query(a = "access_token") String str, @Query(a = "guid") String str2, @QueryMap CookieParamsMap cookieParamsMap);
@FormUrlEncoded
@POST(a = "/api/v2/oauth2/refresh_token")
vp<GeneralResponse<mk>> refreshToken(@Field(a = "access_token") String str, @Field(a = "refresh_token") String str2, @FieldMap CookieParamsMap cookieParamsMap);
@GET(a = "/api/reg/byTel")
vp<GeneralResponse<Object>> registerByTel(@Query(a = "tel") String str, @Query(a = "uname") String str2, @Query(a = "userpwd") String str3, @Query(a = "country_id") String str4, @Query(a = "captcha") String str5, @Query(a = "login") boolean z);
@GET(a = "/api/member/reset")
vp<GeneralResponse<Object>> resetPassword(@Query(a = "tel") String str, @Query(a = "pwd") String str2, @Query(a = "captcha") String str3, @Query(a = "login") boolean z);
@GET(a = "/api/sms/sendCaptcha")
vp<GeneralResponse<Void>> sendSMSCaptcha(@Query(a = "tel") String str, @Query(a = "country_id") String str2, @Query(a = "reset_pwd") int i, @Query(a = "captcha") String str3);
@FormUrlEncoded
@POST(a = "/api/tv/login")
vp<GeneralResponse<TvAccessToken>> signIn(@Field(a = "username") String str, @Field(a = "password") String str2, @Field(a = "captcha") String str3, @Field(a = "token") String str4, @Field(a = "guid") String str5);
@FormUrlEncoded
@POST(a = "/api/v2/oauth2/login")
vp<GeneralResponse<mk>> signInWithVerify(@Field(a = "username") String str, @Field(a = "password") String str2, @Field(a = "captcha") String str3);
@FormUrlEncoded
@POST(a = "/api/v2/oauth2/revoke")
vp<GeneralResponse<Void>> signOut(@Field(a = "access_token") String str, @FieldMap CookieParamsMap cookieParamsMap);
@FormUrlEncoded
@POST(a = "/x/passport-tv-login/login")
vp<GeneralResponse<vd>> tvSignInNew(@Field(a = "username") String str, @Field(a = "password") String str2, @Field(a = "code") String str3, @Field(a = "token") String str4);
@GET(a = "/api/sms/checkCaptcha")
vp<GeneralResponse<Void>> verifyCaptcha(@Query(a = "tel") String str, @Query(a = "country_id") String str2, @Query(a = "reset_pwd") int i, @Query(a = "captcha") String str3);
public static class CookieParamsMap extends ParamsMap {
public CookieParamsMap() {
}
public CookieParamsMap(@NonNull List<ml.a> list) {
super(list.size());
for (ml.a aVar : list) {
putParams(aVar.a, aVar.b);
}
}
}
}