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

Extensions

Link copied to clipboard
fun RxTalkApiClient.chatList(filters: List<ChatFilter>? = null, offset: Int? = null, limit: Int? = null, order: Order? = null): Single<Chats>

카카오톡 채팅방 목록 가져오기.

Link copied to clipboard
fun RxTalkApiClient.chatMembers(chatId: Long, friendsOnly: Boolean? = null, includeProfile: Boolean? = null, token: Long? = null): Single<ChatMembers>

카카오톡 채팅방에 속한 멤버들 가져오기.

Link copied to clipboard
fun RxTalkApiClient.friendsForPartner(friendFilter: FriendFilter? = null, friendOrder: FriendOrder? = null, offset: Int? = null, limit: Int? = null, order: Order? = null, countryCodes: List<String>? = null): Single<Friends<PartnerFriend>>

카카오 플랫폼 내 친구 목록 가져오기.

Link copied to clipboard
fun RxTalkApiClient.sendCustomMessageForPartner(receiverUuids: List<String>, templateId: Long, templateArgs: Map<String, String>? = null): Single<PartnerMessageSendResult>

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

Link copied to clipboard
fun RxTalkApiClient.sendCustomMessageToChats(receiverChatIds: List<Long>, templateId: Long, templateArgs: Map<String, String>? = null): Single<PartnerMessageSendResult>

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

Link copied to clipboard
fun RxTalkApiClient.sendDefaultMessageForPartner(receiverUuids: List<String>, template: DefaultTemplate): Single<PartnerMessageSendResult>

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

Link copied to clipboard
fun RxTalkApiClient.sendDefaultMessageToChats(receiverChatIds: List<Long>, template: DefaultTemplate): Single<PartnerMessageSendResult>

기본 템플릿을 사용하여, 특정 채팅방에 카카오톡 메시지 전송.

Link copied to clipboard
fun RxTalkApiClient.sendScrapMessageForPartner(receiverUuids: List<String>, requestUrl: String, templateId: Long? = null, templateArgs: Map<String, String>? = null): Single<PartnerMessageSendResult>

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

Link copied to clipboard
fun RxTalkApiClient.sendScrapMessageToChats(receiverChatIds: List<Long>, requestUrl: String, templateId: Long? = null, templateArgs: Map<String, String>? = null): Single<PartnerMessageSendResult>

지정된 URL 을 스크랩하여, 특정 채팅방에 카카오톡 메시지 전송.