public static Task <IllustsPage> GetFollowedUsersIllustAsync(this PixivClient client, Restrict restrict = Restrict.Public, int offset = 0) { client.RequireAuth(); return(client.GetAsync <IllustsPage>("/v2/illust/follow", new HttpForm { { "restrict", restrict.GetSymbol() }, { "offset", offset.ToString() } })); }
public static Task <BookmarkTagsPage> GetUserBookmarkTagsAsync(this PixivClient client, Restrict restrict = Restrict.Public) { client.RequireAuth(); return(client.GetAsync <BookmarkTagsPage>("/v1/user/bookmark-tags/illust", new HttpForm { { "restrict", restrict.GetSymbol() } })); }
// TODO support tag public static Task AddIllustBookmarkAsync(this PixivClient client, IllustID id, Restrict restrict = Restrict.Public) { client.RequireAuth(); return(client.PostAsync("/v2/illust/bookmark/add", new HttpForm { { "illust_id", id }, { "restrict", restrict.GetSymbol() } })); }
public static Task <IllustsPage> GetUserBookmarksAsync(this PixivClient client, UserID id, Restrict restrict = Restrict.Public) { return(client.GetAsync <IllustsPage>("/v1/user/bookmarks/illust", new HttpForm { { "user_id", id }, { "restrict", restrict.GetSymbol() } })); }
public static Task <UserFollowPage> GetUserFollowersAsync(this PixivClient client, UserID id, Restrict restrict = Restrict.Public) { return(client.GetAsync <UserFollowPage>("/v1/user/follower", new HttpForm { { "user_id", id }, { "restrict", restrict.GetSymbol() } })); }