tokens method
Implementation
Future<List<PushTokenInfo>> tokens(int uuid) async {
return ApiFactory.handleApiError(() async {
final response =
await dio.get("/v1/push/tokens", queryParameters: {"uuid": uuid});
final data = response.data;
return data is List
? data.map((e) => PushTokenInfo.fromJson(e)).toList()
: throw KakaoClientException(
"/v1/push/tokens response is not an array.");
});
}