User Api Client
class UserApiClient(userApi: UserApi, userApiNoLog: UserApi, tokenManagerProvider: TokenManagerProvider)
Content copied to clipboard
카카오 로그인 API 클라이언트
Client for the Kakao Login APIs
Constructors
Link copied to clipboard
fun UserApiClient(userApi: UserApi = ApiFactory.kapiWithOAuth.create(UserApi::class.java), userApiNoLog: UserApi = ApiFactory.kapiWithOAuthNoLog.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
액세스 토큰 정보
Access token information
Link copied to clipboard
카카오톡으로 로그인 가능 여부 확인
Checks whether the Login with Kakao Talk API is available
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
카카오계정으로 로그인
Login with Kakao Account
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
카카오톡으로 로그인
Login with Kakao Talk
Link copied to clipboard
fun loginWithNewScopes(context: Context, scopes: List<String>, nonce: String? = null, callback: (token: OAuthToken?, error: Throwable?) -> Unit)
Content copied to clipboard
추가 항목 동의 받기
Request additional consent
Link copied to clipboard
Link copied to clipboard
fun revokeServiceTerms(tags: List<String>, callback: (userRevokedServiceTerms: UserRevokedServiceTerms?, error: Throwable?) -> Unit)
Content copied to clipboard
서비스 약관 동의 철회하기
Revoke consent for service terms
Link copied to clipboard
fun selectShippingAddresses(context: Context, callback: (addressId: Long?, error: Throwable?) -> Unit)
Content copied to clipboard
배송지 선택하기
Select shipping address
Link copied to clipboard
fun serviceTerms(tags: List<String>? = null, result: String? = null, callback: (userServiceTerms: UserServiceTerms?, error: Throwable?) -> Unit)
Content copied to clipboard
서비스 약관 동의 내역 확인하기
Retrieve consent details for service terms
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
배송지 가져오기
Retrieve shipping address
Link copied to clipboard
Extensions
Link copied to clipboard
fun UserApiClient.ageAuthInfo(ageLimit: Int? = null, propertyKeys: List<String>? = null, ageCriteria: AgeCriteria? = null, callback: (info: AgeAuthInfo?, error: Throwable?) -> Unit)
Content copied to clipboard
연령인증 정보 확인하기
Check age verification information
Link copied to clipboard
fun UserApiClient.createShippingAddresses(context: Context, callback: (addressId: Long?, error: Throwable?) -> Unit)
Content copied to clipboard
배송지 추가하기
Add Shipping address
Link 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
카카오계정으로 로그인
Login with Kakao Account
Link copied to clipboard
fun UserApiClient.meForPartner(propertyKeys: List<String>? = null, secureReSource: Boolean = true, callback: (user: PartnerUser?, error: Throwable?) -> Unit)
Content copied to clipboard
사용자 정보 가져오기
Retrieve user information
Link copied to clipboard
fun UserApiClient.signupForPartner(properties: Map<String, String>? = null, callback: (error: Throwable?) -> Unit)
Content copied to clipboard
연결하기
Manual signup
Link copied to clipboard
fun UserApiClient.updateShippingAddresses(context: Context, addressId: Long, callback: (addressId: Long?, error: Throwable?) -> Unit)
Content copied to clipboard
배송지 수정하기
Update Shipping address
Link copied to clipboard
fun UserApiClient.upgradeScopes(scopes: List<String>, guardianToken: String? = null, callback: (info: ScopeInfo?, error: Throwable?) -> Unit)
Content copied to clipboard
동의항목 동의 처리하기
Upgrade scopes
Link copied to clipboard
fun UserApiClient.verifyAge(context: Context, ageLimit: Int? = null, authLevel: AgeAuthLevel? = null, skipTerms: Boolean? = null, adultsOnly: Boolean? = null, underAge: Boolean? = false, callback: (error: Throwable?) -> Unit)
Content copied to clipboard
연령인증 페이지 호출하기
Request age verification