scopes method
- List<
String> ? scopes,
KO: 동의 내역 조회
EN: Retrieve consent details
Implementation
Future<ScopeInfo> scopes({List<String>? scopes}) async {
SdkLog.d(
'[UserApi.scopes] started | requestedScopeCount=${scopes?.length ?? 0}',
);
final params = <String, String>{
Constants.scopes: ?(scopes != null ? jsonEncode(scopes) : null),
};
final response = await _client.get(
Constants.v2ScopesPath,
queryParameters: params,
);
final info = ScopeInfo.fromJson(response.data);
SdkLog.i(
'[UserApi.scopes] completed | scopeCount=${info.scopes?.length ?? 0}',
);
return info;
}