StoryApiClient

class StoryApiClient(storyApi: StoryApi)

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

Constructors

Link copied to clipboard
fun StoryApiClient(storyApi: StoryApi = ApiFactory.kapiWithOAuth.create(StoryApi::class.java))

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun delete(id: String, callback: (error: Throwable?) -> Unit)

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

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

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

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

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

Link copied to clipboard
fun postLink(linkInfo: LinkInfo, content: String, permission: Story.Permission = Story.Permission.PUBLIC, enableShare: Boolean = true, androidExecParam: Map<String, String>? = null, iosExecParam: Map<String, String>? = null, androidMarketParam: Map<String, String>? = null, iosMarketParam: Map<String, String>? = null, callback: (storyPostResult: StoryPostResult?, error: Throwable?) -> Unit)

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

Link copied to clipboard
fun postNote(content: String, permission: Story.Permission = Story.Permission.PUBLIC, enableShare: Boolean = true, androidExecParam: Map<String, String>? = null, iosExecParam: Map<String, String>? = null, androidMarketParam: Map<String, String>? = null, iosMarketParam: Map<String, String>? = null, callback: (storyPostResult: StoryPostResult?, error: Throwable?) -> Unit)

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

Link copied to clipboard
fun postPhoto(images: List<String>, content: String, permission: Story.Permission = Story.Permission.PUBLIC, enableShare: Boolean = true, androidExecParam: Map<String, String>? = null, iosExecParam: Map<String, String>? = null, androidMarketParam: Map<String, String>? = null, iosMarketParam: Map<String, String>? = null, callback: (storyPostResult: StoryPostResult?, error: Throwable?) -> Unit)

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

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

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

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

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

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

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

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

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