TalkApiClient

class TalkApiClient(talkApi: TalkApi = ApiFactory.kapiWithOAuth.create(TalkApi::class.java), appKeyTalkApi: AppKeyTalkApi = ApiFactory.kapi.create(AppKeyTalkApi::class.java), applicationInfo: ApplicationInfo = KakaoSdk.applicationContextInfo, contextInfo: ContextInfo = KakaoSdk.applicationContextInfo)

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

Constructors

Link copied to clipboard
constructor(talkApi: TalkApi = ApiFactory.kapiWithOAuth.create(TalkApi::class.java), appKeyTalkApi: AppKeyTalkApi = ApiFactory.kapi.create(AppKeyTalkApi::class.java), applicationInfo: ApplicationInfo = KakaoSdk.applicationContextInfo, contextInfo: ContextInfo = KakaoSdk.applicationContextInfo)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addChannel(context: Context, channelPublicId: String, callback: (error: Throwable?) -> Unit)

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

Link copied to clipboard
fun addChannelUrl(channelPublicId: String): Uri

카카오톡 채널 추가 페이지 URL 반환
Returns a URL to add a Kakao Talk Channel as a friend

Link copied to clipboard
fun channelChatUrl(channelPublicId: String): Uri
Link copied to clipboard
fun channels(publicIds: List<String>? = null, callback: (relations: Channels?, error: Throwable?) -> Unit)

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

Link copied to clipboard
fun chatChannel(context: Context, channelPublicId: String, callback: (error: Throwable?) -> Unit)

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

Link copied to clipboard
fun chatChannelUrl(channelPublicId: String): Uri

카카오톡 채널 채팅 페이지 URL 반환
Returns a URL to start a chat with a Kakao Talk Channel

Link copied to clipboard
fun followChannel(context: Context, channelPublicId: String, callback: (result: FollowChannelResult?, error: Throwable?) -> Unit)

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

Link copied to clipboard
fun friends(context: FriendsContext?, callback: (friends: Friends<Friend>?, error: Throwable?) -> Unit)
fun friends(offset: Int? = null, limit: Int? = null, order: Order? = null, friendOrder: FriendOrder? = null, callback: (friends: Friends<Friend>?, error: Throwable?) -> Unit)

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

Link copied to clipboard
fun profile(callback: (profile: TalkProfile?, error: Throwable?) -> Unit)

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

Link copied to clipboard
fun sendCustomMemo(templateId: Long, templateArgs: Map<String, String>? = null, callback: (error: Throwable?) -> Unit)

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

Link copied to clipboard
fun sendCustomMessage(receiverUuids: List<String>, templateId: Long, templateArgs: Map<String, String>? = null, callback: (result: MessageSendResult?, error: Throwable?) -> Unit)

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

Link copied to clipboard
fun sendDefaultMemo(template: DefaultTemplate, callback: (error: Throwable?) -> Unit)

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

Link copied to clipboard
fun sendDefaultMessage(receiverUuids: List<String>, template: DefaultTemplate, callback: (result: MessageSendResult?, error: Throwable?) -> Unit)

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

Link copied to clipboard
fun sendScrapMemo(requestUrl: String, templateId: Long? = null, templateArgs: Map<String, String>? = null, callback: (error: Throwable?) -> Unit)

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

Link copied to clipboard
fun sendScrapMessage(receiverUuids: List<String>, requestUrl: String, templateId: Long? = null, templateArgs: Map<String, String>? = null, callback: (result: MessageSendResult?, error: Throwable?) -> Unit)

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