类retrofit2.http.Header源码实例Demo

下面列出了怎么用retrofit2.http.Header的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: v9porn   文件: KeDouServiceApi.java
@Headers({"Domain-Name: " + Api.KE_DOU_WO_DOMAIN_NAME})
@GET
Observable<String> videoRelated(@Url String url, @Header("X-Forwarded-For") String ipAddress);
 
源代码2 项目: Pixiv-Shaft   文件: SignApi.java
@FormUrlEncoded
@POST("api/provisional-accounts/create")
Observable<SignResponse> pixivSign(@Header("Authorization") String token,
                                   @Field("user_name") String userName,
                                   @Field("ref") String ref);
 
源代码3 项目: Pixiv-Shaft   文件: SignApi.java
@FormUrlEncoded
@POST("/api/account/edit")
Observable<AccountEditResponse> changePixivID(@Header("Authorization") String token,
                                                      @Field("new_user_account") String new_user_account,
                                                      @Field("current_password") String current_password);
 
源代码4 项目: Pixiv-Shaft   文件: SignApi.java
@FormUrlEncoded
@POST("/api/account/edit")
Observable<AccountEditResponse> changeEmailAndPixivID(@Header("Authorization") String token,
                                            @Field("new_mail_address") String new_mail_address,
                                            @Field("new_user_account") String new_user_account,
                                            @Field("current_password") String current_password);
 
源代码5 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/novel/ranking?filter=for_android")
Observable<ListNovel> getRankNovel(@Header("Authorization") String token,
                                   @Query("mode") String mode,
                                   @Query("date") String date);
 
源代码6 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/manga/recommended?include_privacy_policy=true&filter=for_android&include_ranking_illusts=true")
Observable<ListIllust> getRecmdManga(@Header("Authorization") String token);
 
源代码7 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/novel/recommended?include_privacy_policy=true&filter=for_android&include_ranking_novels=true")
Observable<ListNovel> getRecmdNovel(@Header("Authorization") String token);
 
源代码8 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/trending-tags/{type}?filter=for_android&include_translated_tag_results=true")
Observable<ListTrendingtag> getHotTags(@Header("Authorization") String token,
                                       @Path("type") String type);
 
源代码9 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/search/novel?filter=for_android&include_translated_tag_results=true")
Observable<ListNovel> searchNovel(@Header("Authorization") String token,
                                    @Query("word") String word,
                                    @Query("sort") String sort,
                                    @Query("search_target") String search_target);
 
源代码10 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v2/illust/related?filter=for_android")
Observable<ListIllust> relatedIllust(@Header("Authorization") String token,
                                     @Query("illust_id") int illust_id);
 
源代码11 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/user/bookmarks/illust")
Observable<ListIllust> getUserLikeIllust(@Header("Authorization") String token,
                                         @Query("user_id") int user_id,
                                         @Query("restrict") String restrict,
                                         @Query("tag") String tag);
 
源代码12 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/user/bookmarks/illust")
Observable<ListIllust> getUserLikeIllust(@Header("Authorization") String token,
                                         @Query("user_id") int user_id,
                                         @Query("restrict") String restrict);
 
源代码13 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/user/bookmarks/novel")
Observable<ListNovel> getUserLikeNovel(@Header("Authorization") String token,
                                       @Query("user_id") int user_id,
                                       @Query("restrict") String restrict);
 
源代码14 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/user/illusts?filter=for_android")
Observable<ListIllust> getUserSubmitIllust(@Header("Authorization") String token,
                                           @Query("user_id") int user_id,
                                           @Query("type") String type);
 
源代码15 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/user/novels")
Observable<ListNovel> getUserSubmitNovel(@Header("Authorization") String token,
                                         @Query("user_id") int user_id);
 
源代码16 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v2/illust/follow?restrict=all")
Observable<ListIllust> getFollowUserIllust(@Header("Authorization") String token);
 
源代码17 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/spotlight/articles?filter=for_android")
Observable<ListArticle> getArticles(@Header("Authorization") String token,
                                    @Query("category") String category);
 
源代码18 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/user/detail?filter=for_android")
Observable<UserDetailResponse> getUserDetail(@Header("Authorization") String token,
                                             @Query("user_id") int user_id);
 
源代码19 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/ugoira/metadata")
Observable<GifResponse> getGifPackage(@Header("Authorization") String token,
                                      @Query("illust_id") int illust_id);
 
源代码20 项目: Pixiv-Shaft   文件: AppApi.java
@FormUrlEncoded
@POST("v1/user/follow/add")
Observable<NullResponse> postFollow(@Header("Authorization") String token,
                                    @Field("user_id") int user_id,
                                    @Field("restrict") String followType);
 
源代码21 项目: Pixiv-Shaft   文件: AppApi.java
@FormUrlEncoded
@POST("v1/user/follow/delete")
Observable<NullResponse> postUnFollow(@Header("Authorization") String token,
                                      @Field("user_id") int user_id);
 
源代码22 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/user/follower?filter=for_android")
Observable<ListUser> getWhoFollowThisUser(@Header("Authorization") String token,
                                          @Query("user_id") int user_id);
 
源代码23 项目: Pixiv-Shaft   文件: AppApi.java
@GET("v1/illust/comments")
Observable<ListComment> getComment(@Header("Authorization") String token,
                                   @Query("illust_id") int illust_id);
 
源代码24 项目: Pixiv-Shaft   文件: AppApi.java
@GET
Observable<ListComment> getNextComment(@Header("Authorization") String token,
                                       @Url String nextUrl);
 
源代码25 项目: Pixiv-Shaft   文件: AppApi.java
@FormUrlEncoded
@POST("v1/illust/comment/add")
Observable<CommentHolder> postComment(@Header("Authorization") String token,
                                      @Field("illust_id") int illust_id,
                                      @Field("comment") String comment);
 
源代码26 项目: Pixiv-Shaft   文件: AppApi.java
@FormUrlEncoded
@POST("v1/illust/comment/add")
Observable<CommentHolder> postComment(@Header("Authorization") String token,
                                      @Field("illust_id") int illust_id,
                                      @Field("comment") String comment,
                                      @Field("parent_comment_id") int parent_comment_id);
 
源代码27 项目: Pixiv-Shaft   文件: AppApi.java
@FormUrlEncoded
@POST("v2/illust/bookmark/add")
Observable<NullResponse> postLike(@Header("Authorization") String token,
                                  @Field("illust_id") int illust_id,
                                  @Field("restrict") String restrict);
 
源代码28 项目: Pixiv-Shaft   文件: AppApi.java
@FormUrlEncoded
@POST("v2/novel/bookmark/add")
Observable<NullResponse> postLikeNovel(@Header("Authorization") String token,
                                       @Field("novel_id") int novel_id,
                                       @Field("restrict") String restrict);
 
源代码29 项目: Pixiv-Shaft   文件: AppApi.java
@FormUrlEncoded
@POST("v2/illust/bookmark/add")
Observable<NullResponse> postLike(@Header("Authorization") String token,
                                  @Field("illust_id") int illust_id,
                                  @Field("restrict") String restrict,
                                  @Field("tags[]") String... tags);
 
源代码30 项目: Pixiv-Shaft   文件: AppApi.java
@FormUrlEncoded
@POST("v1/illust/bookmark/delete")
Observable<NullResponse> postDislike(@Header("Authorization") String token,
                                     @Field("illust_id") int illust_id);