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 File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v1/user/mypixiv?filter=for_android") Observable<ListUser> getNiceFriend(@Header("Authorization") String token, @Query("user_id") int user_id);
Example #2
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET Observable<ListArticle> getNextArticals(@Header("Authorization") String token, @Url String next_url);
Example #3
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET Observable<ListIllust> getNextIllust(@Header("Authorization") String token, @Url String next_url);
Example #4
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET Observable<ListSimpleUser> getNextSimpleUser(@Header("Authorization") String token, @Url String next_url);
Example #5
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET Observable<ListUser> getNextUser(@Header("Authorization") String token, @Url String next_url);
Example #6
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET Observable<ListNovel> getNextNovel(@Header("Authorization") String token, @Url String next_url);
Example #7
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@Multipart @POST("v1/user/profile/edit") Observable<NullResponse> updateUserProfile(@Header("Authorization") String token, @Part List<MultipartBody.Part> parts);
Example #8
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v1/live/list") Observable<ListLive> getLiveList(@Header("Authorization") String token, @Query("list_type") String list_type);
Example #9
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v1/illust/bookmark/users?filter=for_android") Observable<ListSimpleUser> getUsersWhoLikeThisIllust(@Header("Authorization") String token, @Query("illust_id") int illust_id);
Example #10
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v2/novel/series") Observable<NovelSeries> getNovelSeries(@Header("Authorization") String token, @Query("series_id") int series_id);
Example #11
Source File: OAuthResponseService.java From PixivforMuzei3 with GNU General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST("/v2/illust/bookmark/add") Call<OauthResponse> postArtworkBookmark(@Header("Authorization") String accessToken, @FieldMap Map<String, String> params);
Example #12
Source File: V9PornServiceApi.java From v9porn with MIT License | 4 votes |
@Headers({"Domain-Name: " + Api.PORN9_VIDEO_DOMAIN_NAME}) @FormUrlEncoded @POST("/my_favour.php") Observable<String> deleteMyFavoriteVideo(@Field("rvid") String rvid, @Field("removfavour") String removFavour, @Field("submit") String submit, @Header("Referer") String referer);
Example #13
Source File: V9PornServiceApi.java From v9porn with MIT License | 4 votes |
@Headers({"Domain-Name: " + Api.PORN9_VIDEO_DOMAIN_NAME}) @GET("/add_favorite.php") Observable<String> favoriteVideo(@Query("VID") String vid, @Query("UID") String uid, @Query("VUID") String vuid, @Header("Referer") String referer);
Example #14
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v1/user/me/state") Observable<UserState> getAccountState(@Header("Authorization") String token);
Example #15
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v1/illust/new?filter=for_android") Observable<ListIllust> getNewWorks(@Header("Authorization") String token, @Query("content_type") String content_type);
Example #16
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v1/novel/new") Observable<ListNovel> getNewNovels(@Header("Authorization") String token);
Example #17
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v2/illust/bookmark/detail") Observable<ListBookmarkTag> getIllustBookmarkTags(@Header("Authorization") String token, @Query("illust_id") int illust_id);
Example #18
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET Observable<ListTag> getNextTags(@Header("Authorization") String token, @Url String nextUrl);
Example #19
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
/** * 获取收藏的标签 */ //GET v1/user/bookmark-tags/illust?user_id=41531382&restrict=public HTTP/1.1 @GET("v1/user/bookmark-tags/illust") Observable<ListTag> getBookmarkTags(@Header("Authorization") String token, @Query("user_id") int user_id, @Query("restrict") String restrict);
Example #20
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v2/search/autocomplete?merge_plain_keyword_results=true") Observable<ListTrendingtag> searchCompleteWord(@Header("Authorization") String token, @Query("word") String word);
Example #21
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v1/search/user?filter=for_android") Observable<ListUser> searchUser(@Header("Authorization") String token, @Query("word") String word);
Example #22
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v1/illust/detail?filter=for_android") Observable<IllustSearchResponse> getIllustByID(@Header("Authorization") String token, @Query("illust_id") int illust_id);
Example #23
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@FormUrlEncoded @POST("v1/novel/bookmark/delete") Observable<NullResponse> postDislikeNovel(@Header("Authorization") String token, @Field("novel_id") int novel_id);
Example #24
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@FormUrlEncoded @POST("v1/illust/bookmark/delete") Observable<NullResponse> postDislike(@Header("Authorization") String token, @Field("illust_id") int illust_id);
Example #25
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@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 #26
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@FormUrlEncoded @POST("v2/novel/bookmark/add") Observable<NullResponse> postLikeNovel(@Header("Authorization") String token, @Field("novel_id") int novel_id, @Field("restrict") String restrict);
Example #27
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@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 File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@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 #29
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@FormUrlEncoded @POST("v1/illust/comment/add") Observable<CommentHolder> postComment(@Header("Authorization") String token, @Field("illust_id") int illust_id, @Field("comment") String comment);
Example #30
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET Observable<ListComment> getNextComment(@Header("Authorization") String token, @Url String nextUrl);