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, settleId: 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, settleId: 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