getRecommendedIllustPage method
Future<IllustPageResult>
getRecommendedIllustPage(
- IllustType type, {
- required CancelToken cancelToken,
获取推荐插画
type
- 类型(IllustType)
Implementation
Future<IllustPageResult> getRecommendedIllustPage(
IllustType type, {
required CancelToken cancelToken,
}) async {
return _httpClient
.get<String>(
'/v1/${type.toPixivStringParameter()}/recommended',
queryParameters: {
'filter': 'for_android',
},
cancelToken: cancelToken,
)
.then((response) => IllustPageResult.fromJson(jsonDecode(response.data!)));
}