User Api Client
class UserApiClient(userApi: UserApi, tokenManagerProvider: TokenManagerProvider)
Content copied to clipboard
사용자관리 API 호출을 담당하는 클라이언트.
Constructors
Link copied to clipboard
fun UserApiClient(userApi: UserApi = ApiFactory.kapiWithOAuth.create(UserApi::class.java), tokenManagerProvider: TokenManagerProvider = TokenManagerProvider.instance)
Content copied to clipboard
Types
Functions
Link copied to clipboard
fun accessTokenInfo(callback: (tokenInfo: AccessTokenInfo?, error: Throwable?) -> Unit)
Content copied to clipboard
현재 로그인한 사용자의 엑세스 토큰 정보 보기.
Link copied to clipboard
fun certLoginWithKakaoAccount(context: Context, prompts: List<Prompt>? = null, state: String? = null, nonce: String? = null, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null, loginHint: String? = null, callback: (certTokenInfo: CertTokenInfo?, error: Throwable?) -> Unit)
Content copied to clipboard
채널 메시지 방식 카카오톡 인증 로그인
Link copied to clipboard
fun certLoginWithKakaoTalk(context: Context, prompts: List<Prompt>? = null, state: String? = null, requestCode: Int = AuthCodeClient.DEFAULT_REQUEST_CODE, nonce: String? = null, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null, callback: (certTokenInfo: CertTokenInfo?, error: Throwable?) -> Unit)
Content copied to clipboard
앱투앱(App-to-App) 방식 카카오톡 인증 로그인
Link copied to clipboard
카카오톡으로 로그인 가능(설치) 여부 검사.
Link copied to clipboard
fun loginWithKakaoAccount(context: Context, prompts: List<Prompt>? = null, loginHint: String? = null, nonce: String? = null, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null, callback: (token: OAuthToken?, error: Throwable?) -> Unit)
Content copied to clipboard
카카오계정으로 로그인. 기본 웹 브라우저(CustomTabs)에 있는 카카오계정 cookie 로 사용자를 인증하고 OAuthToken 발급.
Link copied to clipboard
fun loginWithKakaoTalk(context: Context, requestCode: Int = AuthCodeClient.DEFAULT_REQUEST_CODE, nonce: String? = null, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null, callback: (token: OAuthToken?, error: Throwable?) -> Unit)
Content copied to clipboard
카카오톡으로 로그인. 카카오톡에 연결된 카카오계정으로 사용자를 인증하고 OAuthToken 발급.
Link copied to clipboard
fun loginWithNewScopes(context: Context, scopes: List<String>, nonce: String? = null, callback: (token: OAuthToken?, error: Throwable?) -> Unit)
Content copied to clipboard
사용자가 아직 동의하지 않은 개인정보 및 접근권한 동의 항목에 대하여 동의를 요청하는 동의 화면을 출력하고, 사용자 동의 시 동의항목이 업데이트 된 OAuthToken 발급.
Link copied to clipboard
Link copied to clipboard
fun serviceTerms(extra: String? = null, callback: (userServiceTerms: UserServiceTerms?, error: Throwable?) -> Unit)
Content copied to clipboard
사용자가 카카오 간편가입을 통해 동의한 서비스 약관 내역 반환.
Link copied to clipboard
fun shippingAddresses(addressId: Long, callback: (userShippingAddresses: UserShippingAddresses?, error: Throwable?) -> Unit)
Content copied to clipboard
fun shippingAddresses(fromUpdatedAt: Date? = null, pageSize: Int? = null, callback: (userShippingAddresses: UserShippingAddresses?, error: Throwable?) -> Unit)
Content copied to clipboard
사용자의 배송지 정보 획득.
Link copied to clipboard
Extensions
Link copied to clipboard
fun UserApiClient.ageAuthInfo(ageLimit: Int? = null, propertyKeys: List<String>? = null, callback: (info: AgeAuthInfo?, error: Throwable?) -> Unit)
Content copied to clipboard
연령인증이 필요한 시점 연령인증 결과 조회를 확인 하기 위해 사용.
Link copied to clipboard
fun UserApiClient.loginWithKakaoAccount(context: Context, accountParameters: Map<String, String>, callback: (token: OAuthToken?, error: Throwable?) -> Unit)
Content copied to clipboard
기본 브라우저의 카카오계정 쿠키 유무와 관계 없이 카카오계정 로그인 페이지를 먼저 호출하여 사용자를 인증한 후 토큰을 발급 받습니다.
fun UserApiClient.loginWithKakaoAccount(context: Context, prompts: List<Prompt>? = null, loginHint: String? = null, nonce: String? = null, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null, accountsSkipIntro: Boolean? = null, accountsTalkLoginVisible: Boolean? = null, callback: (token: OAuthToken?, error: Throwable?) -> Unit)
Content copied to clipboard
Link copied to clipboard
fun UserApiClient.meForPartner(propertyKeys: List<String>? = null, secureReSource: Boolean = true, callback: (user: PartnerUser?, error: Throwable?) -> Unit)
Content copied to clipboard
파트너용 /v2/user/me API 를 호출. 사용자에 대한 다양한 정보 획득.
Link copied to clipboard
Link copied to clipboard
fun UserApiClient.signupForPartner(properties: Map<String, String>? = null, callback: (error: Throwable?) -> Unit)
Content copied to clipboard
앱 연결 상태가 PREREGISTER 상태의 사용자에 대하여 앱 연결 요청. 자동연결 설정을 비활성화한 앱에서 사용.
Link copied to clipboard
fun UserApiClient.upgradeScopes(scopes: List<String>, guardianToken: String? = null, callback: (info: ScopeInfo?, error: Throwable?) -> Unit)
Content copied to clipboard
요청한 동의 항목(Scope)를 사용자가 동의한 동의 항목으로 추가 하기 위해 사용.