kakao-android-sdk-rx / com.kakao.sdk.story / StoryApiClient

StoryApiClient

class StoryApiClient

카카오스토리 API 호출을 담당하는 클라이언트.

Constructors

<init>

카카오스토리 API 호출을 담당하는 클라이언트.

StoryApiClient(storyApi: StoryApi = ApiFactory.kapiWithOAuth.create(StoryApi::class.java))

Functions

delete

카카오스토리의 특정 내 스토리 삭제.

fun delete(id: String, callback: (error: Throwable?) -> Unit): Unit

isStoryUser

카카오스토리 사용자인지 확인하기.

fun isStoryUser(callback: (isStoryUser: Boolean?, error: Throwable?) -> Unit): Unit

linkInfo

포스팅하고자 하는 URL 을 스크랩하여 링크 정보 생성

fun linkInfo(url: String, callback: (linkInfo: LinkInfo?, error: Throwable?) -> Unit): Unit

postLink

카카오스토리에 링크 스토리 쓰기

fun postLink(linkInfo: LinkInfo, content: String, permission: Permission = Story.Permission.PUBLIC, enableShare: Boolean = true, androidExecutionParams: Map<String, String>? = null, iosExecutionParams: Map<String, String>? = null, androidMarketParams: Map<String, String>? = null, iosMarketParams: Map<String, String>? = null, callback: (storyPostResult: StoryPostResult?, error: Throwable?) -> Unit): Unit

postNote

카카오스토리에 글 스토리 쓰기.

fun postNote(content: String, permission: Permission = Story.Permission.PUBLIC, enableShare: Boolean = true, androidExecutionParams: Map<String, String>? = null, iosExecutionParams: Map<String, String>? = null, androidMarketParams: Map<String, String>? = null, iosMarketParams: Map<String, String>? = null, callback: (storyPostResult: StoryPostResult?, error: Throwable?) -> Unit): Unit

postPhoto

카카오스토리에 사진 스토리 쓰기.

fun postPhoto(images: List<String>, content: String, permission: Permission = Story.Permission.PUBLIC, enableShare: Boolean = true, androidExecutionParams: Map<String, String>? = null, iosExecutionParams: Map<String, String>? = null, androidMarketParams: Map<String, String>? = null, iosMarketParams: Map<String, String>? = null, callback: (storyPostResult: StoryPostResult?, error: Throwable?) -> Unit): Unit

profile

카카오스토리 프로필 가져오기.

fun profile(secureResource: Boolean? = true, callback: (profile: StoryProfile?, error: Throwable?) -> Unit): Unit

stories

카카오스토리의 내 스토리 여러 개 가져오기. 단, comments, likes 등의 상세정보는 없으며 이는 내스토리 정보 요청 story 통해 획득 가능.

fun stories(lastId: String? = null, callback: (stories: List<Story>?, error: Throwable?) -> Unit): Unit

story

카카오스토리의 특정 내 스토리 가져오기. comments, likes 등 각종 상세정보 포함.

fun story(id: String, callback: (story: Story?, error: Throwable?) -> Unit): Unit

upload

로컬 이미지 파일 여러장을 카카오스토리에 업로드

fun upload(images: List<File>, callback: (uploadedPaths: List<String>?, error: Throwable?) -> Unit): Unit

Companion Object Properties

instance

간편한 API 호출을 위해 기본 제공되는 singleton 객체

val instance: StoryApiClient

Companion Object Extension Properties

rx

ReactiveX 를 위한 StoryApiClient singleton 객체

val StoryApiClient.Companion.rx: RxStoryApiClient