getIllustDetail method
获取插画详细
如果没有查询到会返回404 : ErrorMessage.fromJson =>
illustId
- 插画ID
Implementation
Future<IllustDetail> getIllustDetail(
int illustId, {
required CancelToken cancelToken,
}) async {
final response = await _httpClient.get<String>(
'/v1/illust/detail',
queryParameters: {
'filter': 'for_android',
'illust_id': illustId,
},
cancelToken: cancelToken,
);
final data = IllustDetail.fromJson(jsonDecode(response.data!));
return data;
}