RxUserApiClient

class RxUserApiClient(userApi: RxUserApi = ApiFactory.rxKapiWithOAuth.create(RxUserApi::class.java), val authOperations: RxAuthOperations = RxAuthOperations.instance, tokenManagerProvider: TokenManagerProvider = TokenManagerProvider.instance)

카카오 로그인 API 클라이언트
Client for the Kakao Login APIs

Constructors

Link copied to clipboard
constructor(userApi: RxUserApi = ApiFactory.rxKapiWithOAuth.create(RxUserApi::class.java), authOperations: RxAuthOperations = RxAuthOperations.instance, tokenManagerProvider: TokenManagerProvider = TokenManagerProvider.instance)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

액세스 토큰 정보 조회
Access token information

Link copied to clipboard
@JvmOverloads
fun RxUserApiClient.ageAuthInfo(ageLimit: Int? = null, propertyKeys: List<String>? = null, ageCriteria: AgeCriteria? = null): Single<AgeAuthInfo>

연령인증 정보 조회
Check age verification information

Link copied to clipboard
fun RxUserApiClient.createShippingAddress(context: Context): Single<Long>

배송지 추가
Add shipping address

Link copied to clipboard
fun loginWithKakao(context: Context, uiMode: LoginUiMode = LoginUiMode.AUTO, accountParams: AccountLoginParams? = null, nonce: String? = null, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null): Single<OAuthToken>

카카오톡으로 로그인과 카카오계정으로 로그인 중 하나를 선택할 수 있는 화면 제공
Provides a screen where users can choose between logging in with Kakao Talk or Kakao Account.

Link copied to clipboard
@JvmOverloads
fun loginWithKakaoAccount(context: Context, prompts: List<Prompt>? = null, loginHint: String? = null, nonce: String? = null, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null): Single<OAuthToken>

카카오계정으로 로그인
Login with Kakao Account

Link copied to clipboard
@JvmOverloads
fun RxUserApiClient.loginWithKakaoAccount(context: Context, prompts: List<Prompt>? = null, loginHint: String? = null, nonce: String? = null, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null): Single<OAuthToken>

카카오계정으로 로그인
Login with Kakao Account

Link copied to clipboard
@JvmOverloads
fun loginWithKakaoTalk(context: Context, requestCode: Int = AuthCodeClient.DEFAULT_REQUEST_CODE, nonce: String? = null, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null): Single<OAuthToken>

카카오톡으로 로그인
Login with Kakao Talk

Link copied to clipboard
fun loginWithNewScopes(context: Context, scopes: List<String>, nonce: String? = null): Single<OAuthToken>

동의항목 추가 동의 요청
Request additional consent

Link copied to clipboard
fun logout(): Completable

로그아웃
Logout

Link copied to clipboard
@JvmOverloads
fun me(properties: List<String>? = null, secureResource: Boolean = true): Single<User>

사용자 정보 조회
Retrieve user information

Link copied to clipboard
@JvmOverloads
fun RxUserApiClient.meForPartner(propertyKeys: List<String>? = null, secureReSource: Boolean = true): Single<PartnerUser>

사용자 정보 조회
Retrieve user information

Link copied to clipboard
fun revokeScopes(scopes: List<String>): Single<ScopeInfo>

동의항목 동의 철회
Revoke consent

Link copied to clipboard
fun revokeServiceTerms(tags: List<String>): Single<UserRevokedServiceTerms>

서비스 약관 동의 철회
Revoke consent for service terms

Link copied to clipboard
fun scopes(scopes: List<String>? = null): Single<ScopeInfo>

동의항목 동의 내역 조회
Retrieve consent details

Link copied to clipboard
fun selectShippingAddress(context: Context): Single<Long>

배송지 선택
Select shipping address

Link copied to clipboard
fun serviceTerms(tags: List<String>? = null, result: String? = null): Single<UserServiceTerms>

서비스 약관 동의 내역 조회
Retrieve consent details for service terms

Link copied to clipboard
fun shippingAddresses(addressId: Long): Single<UserShippingAddresses>
@JvmOverloads
fun shippingAddresses(fromUpdatedAt: Date? = null, pageSize: Int? = null): Single<UserShippingAddresses>

배송지 조회
Retrieve shipping address

Link copied to clipboard
@JvmOverloads
fun signup(properties: Map<String, String>? = null): Completable

수동 연결
Manual signup

Link copied to clipboard
@JvmOverloads
fun RxUserApiClient.signupForPartner(properties: Map<String, String>? = null): Completable

수동 연결
Manual signup

Link copied to clipboard
fun unlink(): Completable

연결 해제
Unlink

Link copied to clipboard
fun updateProfile(properties: Map<String, String>): Completable

사용자 프로퍼티 저장
Store user properties

Link copied to clipboard
fun RxUserApiClient.updateShippingAddress(context: Context, addressId: Long): Single<Long>

배송지 수정
Update shipping address

Link copied to clipboard
@JvmOverloads
fun RxUserApiClient.upgradeScopes(scopes: List<String>, guardianToken: String? = null): Single<ScopeInfo>

동의항목 동의 처리
Upgrade scopes

Link copied to clipboard
@JvmOverloads
fun RxUserApiClient.verifyAge(context: Context, ageLimit: Int? = null, authLevel: AgeAuthLevel? = null, skipTerms: Boolean? = null, adultsOnly: Boolean? = null, underAge: Boolean? = false): Completable

연령인증 페이지 호출
Request age verification

Properties

Link copied to clipboard
val authOperations: RxAuthOperations