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

RxStoryApiClient

class RxStoryApiClient

Author
kevin.kang. Created on 2018. 3. 20..

Constructors

<init>

RxStoryApiClient(api: RxStoryApi = ApiFactory.kapiWithOAuth.create(RxStoryApi::class.java), apiInterceptor: TokenBasedApiInterceptor = TokenBasedApiInterceptor.instance)

Functions

deleteStory

fun deleteStory(id: String): Completable

isStoryUser

fun isStoryUser(): Single<StoryUserResult>

linkInfo

fun linkInfo(url: String): Single<LinkInfo>

postLink

fun postLink(linkInfo: LinkInfo, content: String, permission: Permission = Story.Permission.PUBLIC, enableShare: Boolean = true, androidExecParams: Map<String, String>? = null, iosExecParams: Map<String, String>? = null, androidMarketParams: Map<String, String>? = null, iosMarketParams: Map<String, String>? = null): Single<StoryPostResult>

postNote

fun postNote(content: String, permission: Permission = Story.Permission.PUBLIC, enableShare: Boolean = true, androidExecParams: Map<String, String>? = null, iosExecParams: Map<String, String>? = null, androidMarketParams: Map<String, String>? = null, iosMarketParams: Map<String, String>? = null): Single<StoryPostResult>

postPhoto

fun postPhoto(images: List<String>, content: String, permission: Permission = Story.Permission.PUBLIC, enableShare: Boolean = true, androidExecParams: Map<String, String>? = null, iosExecParams: Map<String, String>? = null, androidMarketParams: Map<String, String>? = null, iosMarketParams: Map<String, String>? = null): Single<StoryPostResult>

profile

fun profile(secureResource: Boolean? = true): Single<StoryProfile>

stories

fun stories(lastId: String? = null): Single<List<Story>>

story

fun story(id: String): Single<Story>

upload

fun upload(images: List<File>): Single<List<String>>

Companion Object Properties

instance

val instance: RxStoryApiClient