UserApi class

사용자관리 API 호출을 담당하는 클라이언트

Constructors

UserApi(Dio _dio)

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

accessTokenInfo() → Future<AccessTokenInfo>
현재 로그인한 사용자의 엑세스 토큰 정보 보기
certLoginWithKakaoAccount({required String signData, List<Prompt>? prompts, List<String>? channelPublicIds, List<String>? serviceTerms, String? loginHint, String? nonce, String? settleId}) → Future<CertTokenInfo>
채널 메시지 방식 카카오톡 인증 로그인
certLoginWithKakaoTalk({required String signData, List<Prompt>? prompts, List<String>? channelPublicIds, List<String>? serviceTerms, String? nonce, String? settleId}) → Future<CertTokenInfo>
앱투앱(App-to-App) 방식 카카오톡 인증 로그인
loginWithKakaoAccount({List<Prompt>? prompts, List<String>? channelPublicIds, List<String>? serviceTerms, String? loginHint, String? nonce}) → Future<OAuthToken>
카카오계정으로 로그인. 기본 웹 브라우저에 있는 카카오계정 cookie 로 사용자를 인증하고 OAuthToken 발급
loginWithKakaoTalk({List<String>? channelPublicIds, List<String>? serviceTerms, String? nonce}) → Future<OAuthToken>
카카오톡으로 로그인 카카오톡에 연결된 카카오계정으로 사용자를 인증하고 OAuthToken 발급 발급된 토큰은 TokenManagerProvider에 지정된 토큰 저장소에 자동으로 저장됨 ID 토큰 재생 공격 방지를 위한 검증 값은 nonce로 전달. 임의의 문자열, ID 토큰 검증 시 사용
loginWithNewScopes(List<String> scopes, {String? nonce}) → Future<OAuthToken>
사용자가 아직 동의하지 않은 개인정보 및 접근권한 동의 항목에 대하여 동의를 요청하는 동의 화면을 출력하고, 사용자 동의 시 동의항목이 업데이트 된 OAuthToken 발급
logout() → Future<UserIdResponse>
현재 토큰을 강제로 만료시키고 로그아웃
me({List<String>? properties, bool secureResource = true}) → Future<User>
사용자 정보 요청
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revokeScopes({required List<String> scopes}) → Future<ScopeInfo>
사용자의 특정 동의 항목에 대한 동의를 철회하고, 남은 사용자 동의 항목의 상세 정보 목록 반환
revokeServiceTerms({required List<String> tags}) → Future<UserRevokedServiceTerms>
특정 서비스 약관에 대한 동의를 철회하고, 동의 철회가 반영된 서비스 약관 목록 반환
scopes({List<String>? scopes}) → Future<ScopeInfo>
사용자 동의 항목의 상세 정보 목록 반환
selectShippingAddresses({bool? mobileView, bool? enableBackButton}) → Future<int>
배송지 선택하기
serviceTerms({List<String>? tags, String? result}) → Future<UserServiceTerms>
서비스 약관 내역 반환.
shippingAddresses({int? addressId, DateTime? fromUpdatedAt, int? pageSize}) → Future<UserShippingAddresses>
사용자의 배송지 정보 획득
signup({Map<String, String>? properties}) → Future<void>
앱 연결 상태가 PREREGISTER 상태의 사용자에 대하여 앱 연결 요청 자동연결 설정을 비활성화한 앱에서 사용
toString() → String
A string representation of this object.
inherited
연결 끊기. 카카오 로그인을 통한 사용자와 서비스 간의 연결 관계를 해제하고 사용자의 정보 제공 및 카카오 플랫폼 사용을 중단
updateProfile(Map<String, String> properties) → Future<void>
User 클래스에서 제공되고 있는 사용자의 부가정보를 신규저장 및 수정

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

instance UserApi
간편한 API 호출을 위해 기본 제공되는 singleton 객체
final