RxTalkApiClient

class RxTalkApiClient(api: RxTalkApi, appKeyApi: AppKeyRxTalkApi, authOperations: RxAuthOperations)

카카오톡 API 호출을 담당하는 클라이언트. (for ReactiveX)

Constructors

Link copied to clipboard
fun RxTalkApiClient(api: RxTalkApi = ApiFactory.rxKapiWithOAuth.create(RxTalkApi::class.java), appKeyApi: AppKeyRxTalkApi = ApiFactory.rxKapi.create(AppKeyRxTalkApi::class.java), authOperations: RxAuthOperations = RxAuthOperations.instance)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addChannel(context: Context, channelPublicId: String): Single<Unit>

카카오톡 채널 추가

Link copied to clipboard
fun channelChat(context: Context, channelPublicId: String): Single<Unit>

카카오톡 채널 1:1 대화방 실행

Link copied to clipboard
fun channels(publicIds: List<String>? = null): Single<Channels>

사용자가 특정 카카오톡 채널을 추가했는지 확인.

Link copied to clipboard
fun followChannel(context: Context, channelPublicId: String): Single<FollowChannelResult>

카카오톡 채널 간편 추가하기

Link copied to clipboard
fun friends(offset: Int? = null, limit: Int? = null, order: Order? = null, friendOrder: FriendOrder? = null): Single<Friends<Friend>>

카카오톡 친구 목록 가져오기.

Link copied to clipboard
fun profile(): Single<TalkProfile>

카카오톡 프로필 가져오기.

Link copied to clipboard
fun sendCustomMemo(templateId: Long, templateArgs: Map<String, String>? = null): Completable

카카오 디벨로퍼스에서 생성한 서비스만의 커스텀 메시지 템플릿을 사용하여, 카카오톡의 나와의 채팅방으로 메시지 전송.

Link copied to clipboard
fun sendCustomMessage(receiverUuids: List<String>, templateId: Long, templateArgs: Map<String, String>? = null): Single<MessageSendResult>

카카오 디벨로퍼스에서 생성한 서비스만의 커스텀 메시지 템플릿을 사용하여, 조회한 친구를 대상으로 카카오톡으로 메시지 전송.

Link copied to clipboard
fun sendDefaultMemo(template: DefaultTemplate): Completable

기본 템플릿을 이용하여, 카카오톡의 나와의 채팅방으로 메시지 전송.

Link copied to clipboard
fun sendDefaultMessage(receiverUuids: List<String>, template: DefaultTemplate): Single<MessageSendResult>

기본 템플릿을 사용하여, 조회한 친구를 대상으로 카카오톡으로 메시지 전송.

Link copied to clipboard
fun sendScrapMemo(requestUrl: String, templateId: Long? = null, templateArgs: Map<String, String>? = null): Completable

지정된 URL 을 스크랩하여, 카카오톡의 나와의 채팅방으로 메시지 전송.

Link copied to clipboard
fun sendScrapMessage(receiverUuids: List<String>, requestUrl: String, templateId: Long? = null, templateArgs: Map<String, String>? = null): Single<MessageSendResult>

지정된 URL을 스크랩하여, 조회한 친구를 대상으로 카카오톡으로 메시지 전송.

Properties

Link copied to clipboard
val authOperations: RxAuthOperations