kakao-partner-android-sdk-rx / com.kakao.sdk.auth / AuthApiClient

AuthApiClient

class AuthApiClient

Author
kevin.kang. Created on 2019-11-01..

Constructors

<init>

AuthApiClient(authApi: AuthApi = ApiFactory.kauth.create(AuthApi::class.java), accessTokenRepo: AccessTokenRepo = AccessTokenRepo.instance)

Functions

agt

fun agt(clientId: String = KakaoSdk.applicationContextInfo.appKey, callback: (response: AgtResponse?, error: Throwable?) -> Unit): Unit

issueAccessToken

fun issueAccessToken(authCode: String, redirectUri: String = "kakao${KakaoSdk.applicationContextInfo.appKey}://oauth", clientId: String = KakaoSdk.applicationContextInfo.appKey, androidKeyHash: String = KakaoSdk.applicationContextInfo.signingKeyHash, callback: (response: AccessTokenResponse?, error: Throwable?) -> Unit): Unit

refreshAccessToken

fun refreshAccessToken(refreshToken: String, clientId: String = KakaoSdk.applicationContextInfo.appKey, androidKeyHash: String = KakaoSdk.applicationContextInfo.signingKeyHash, callback: (response: AccessTokenResponse?, error: Throwable?) -> Unit): Unit

Companion Object Properties

instance

val instance: AuthApiClient

Companion Object Functions

translateError

fun translateError(t: Throwable): Throwable

Companion Object Extension Properties

rx

Rx 용 AuthApiClient 싱긅을 접근하기 위한 extension property

val AuthApiClient.Companion.rx: RxAuthApiClient