RxTalkApiClient

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

카카오톡 채널, 카카오톡 소셜, 카카오톡 메시지 API 클라이언트
Client for the Kakao Talk Channel, Kakao Talk Social, Kakao Talk Message APIs

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>

카카오톡 채널 친구 추가하기
Add Kakao Talk Channel

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

카카오톡 채널 채팅하기
Start Kakao Talk Channel chat

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

카카오톡 채널 관계 확인하기
Check Kakao Talk Channel relationship

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

카카오톡 채널 간편 추가하기
Follow Kakao Talk Channel

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

카카오톡 친구 목록 가져오기
Retrieve list of friends

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

카카오톡 프로필 가져오기
Retrieve Kakao Talk profile

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

나에게 사용자 정의 템플릿으로 메시지 보내기
Send message with custom template to me

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

친구에게 사용자 정의 템플릿으로 메시지 보내기
Send message with custom template to friends

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

나에게 기본 템플릿으로 메시지 보내기
Send message with default template to me

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

친구에게 기본 템플릿으로 메시지 보내기
Send message with default template to friends

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

나에게 스크랩 메시지 보내기
Send scrape message to me

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

친구에게 스크랩 메시지 보내기
Send scrape message to friends

Extensions

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

채팅방 목록 가져오기
Retrieve list of chats

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

채팅방 멤버 가져오기
Retrieve list if chat members

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>>

친구 목록 가져오기
Retrieve list of friends

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

사용자 정의 템플릿으로 메시지 보내기
Send message with custom template

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

채팅방에 사용자 정의 템플릿으로 메시지 보내기
Send message with custom template to chats

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

기본 템플릿으로 메시지 보내기
Send message with default template

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

채팅방에 기본 템플릿으로 메시지 보내기
Send message with default template to chats

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

스크랩 메시지 보내기
Send scrape message

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

채팅방에 스크랩 메시지 보내기
Send scrape message to chats