getNewIllustPage method
获取最近发布的插画
type
- 类型(IllustType)
Implementation
Future<IllustPageResult> getNewIllustPage(
IllustType type, {
required CancelToken cancelToken,
}) async {
return _httpClient
.get<String>(
'/v1/illust/new',
queryParameters: {
'filter': 'for_android',
'content_type': type.toPixivStringParameter(),
},
cancelToken: cancelToken,
)
.then((response) => IllustPageResult.fromJson(jsonDecode(response.data!)));
}