getUserIllustBookmarkPage method
获取用户收藏的插画
userId
- 用户ID
Implementation
Future<IllustPageResult> getUserIllustBookmarkPage(
int userId, {
Restrict restrict = Restrict.public,
required CancelToken cancelToken,
}) async {
return _httpClient
.get<String>(
'/v1/user/bookmarks/illust',
queryParameters: {
'user_id': userId,
'restrict': restrict.toPixivStringParameter(),
},
cancelToken: cancelToken,
)
.then((response) => IllustPageResult.fromJson(jsonDecode(response.data!)));
}