retrofit2.http.Header Java Examples

The following examples show how to use retrofit2.http.Header. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: v9porn   Author: ForLovelj   File: KeDouServiceApi.java    License: MIT License 4 votes vote down vote up
@Headers({"Domain-Name: " + Api.KE_DOU_WO_DOMAIN_NAME})
@GET
Observable<String> videoRelated(@Url String url, @Header("X-Forwarded-For") String ipAddress);
 
Example #2
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: SignApi.java    License: MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("api/provisional-accounts/create")
Observable<SignResponse> pixivSign(@Header("Authorization") String token,
                                   @Field("user_name") String userName,
                                   @Field("ref") String ref);
 
Example #3
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: SignApi.java    License: MIT License 4 votes vote down vote up
@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);
 
Example #4
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: SignApi.java    License: MIT License 4 votes vote down vote up
@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);
 
Example #5
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/novel/ranking?filter=for_android")
Observable<ListNovel> getRankNovel(@Header("Authorization") String token,
                                   @Query("mode") String mode,
                                   @Query("date") String date);
 
Example #6
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/manga/recommended?include_privacy_policy=true&filter=for_android&include_ranking_illusts=true")
Observable<ListIllust> getRecmdManga(@Header("Authorization") String token);
 
Example #7
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/novel/recommended?include_privacy_policy=true&filter=for_android&include_ranking_novels=true")
Observable<ListNovel> getRecmdNovel(@Header("Authorization") String token);
 
Example #8
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/trending-tags/{type}?filter=for_android&include_translated_tag_results=true")
Observable<ListTrendingtag> getHotTags(@Header("Authorization") String token,
                                       @Path("type") String type);
 
Example #9
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@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);
 
Example #10
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v2/illust/related?filter=for_android")
Observable<ListIllust> relatedIllust(@Header("Authorization") String token,
                                     @Query("illust_id") int illust_id);
 
Example #11
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@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);
 
Example #12
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/user/bookmarks/illust")
Observable<ListIllust> getUserLikeIllust(@Header("Authorization") String token,
                                         @Query("user_id") int user_id,
                                         @Query("restrict") String restrict);
 
Example #13
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/user/bookmarks/novel")
Observable<ListNovel> getUserLikeNovel(@Header("Authorization") String token,
                                       @Query("user_id") int user_id,
                                       @Query("restrict") String restrict);
 
Example #14
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/user/illusts?filter=for_android")
Observable<ListIllust> getUserSubmitIllust(@Header("Authorization") String token,
                                           @Query("user_id") int user_id,
                                           @Query("type") String type);
 
Example #15
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/user/novels")
Observable<ListNovel> getUserSubmitNovel(@Header("Authorization") String token,
                                         @Query("user_id") int user_id);
 
Example #16
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v2/illust/follow?restrict=all")
Observable<ListIllust> getFollowUserIllust(@Header("Authorization") String token);
 
Example #17
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/spotlight/articles?filter=for_android")
Observable<ListArticle> getArticles(@Header("Authorization") String token,
                                    @Query("category") String category);
 
Example #18
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/user/detail?filter=for_android")
Observable<UserDetailResponse> getUserDetail(@Header("Authorization") String token,
                                             @Query("user_id") int user_id);
 
Example #19
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/ugoira/metadata")
Observable<GifResponse> getGifPackage(@Header("Authorization") String token,
                                      @Query("illust_id") int illust_id);
 
Example #20
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("v1/user/follow/add")
Observable<NullResponse> postFollow(@Header("Authorization") String token,
                                    @Field("user_id") int user_id,
                                    @Field("restrict") String followType);
 
Example #21
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("v1/user/follow/delete")
Observable<NullResponse> postUnFollow(@Header("Authorization") String token,
                                      @Field("user_id") int user_id);
 
Example #22
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/user/follower?filter=for_android")
Observable<ListUser> getWhoFollowThisUser(@Header("Authorization") String token,
                                          @Query("user_id") int user_id);
 
Example #23
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v1/illust/comments")
Observable<ListComment> getComment(@Header("Authorization") String token,
                                   @Query("illust_id") int illust_id);
 
Example #24
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET
Observable<ListComment> getNextComment(@Header("Authorization") String token,
                                       @Url String nextUrl);
 
Example #25
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("v1/illust/comment/add")
Observable<CommentHolder> postComment(@Header("Authorization") String token,
                                      @Field("illust_id") int illust_id,
                                      @Field("comment") String comment);
 
Example #26
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@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);
 
Example #27
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("v2/illust/bookmark/add")
Observable<NullResponse> postLike(@Header("Authorization") String token,
                                  @Field("illust_id") int illust_id,
                                  @Field("restrict") String restrict);
 
Example #28
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("v2/novel/bookmark/add")
Observable<NullResponse> postLikeNovel(@Header("Authorization") String token,
                                       @Field("novel_id") int novel_id,
                                       @Field("restrict") String restrict);
 
Example #29
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@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);
 
Example #30
Source Project: Pixiv-Shaft   Author: CeuiLiSA   File: AppApi.java    License: MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("v1/illust/bookmark/delete")
Observable<NullResponse> postDislike(@Header("Authorization") String token,
                                     @Field("illust_id") int illust_id);