Fanbox

class Fanbox(logLevel: LogLevel = LogLevel.NONE, ioDispatcher: CoroutineDispatcher = Dispatchers.IO)

Constructors

Link copied to clipboard
constructor(logLevel: LogLevel = LogLevel.NONE, ioDispatcher: CoroutineDispatcher = Dispatchers.IO)

Properties

Link copied to clipboard
val cookies: Flow<List<Cookie>>
Link copied to clipboard
val csrfToken: Flow<String?>

Functions

Link copied to clipboard
suspend fun addComment(postId: FanboxPostId, rootCommentId: FanboxCommentId, parentCommentId: FanboxCommentId, body: String)
Link copied to clipboard
suspend fun deleteComment(commentId: FanboxCommentId)
Link copied to clipboard
suspend fun downloadPostFile(postId: FanboxPostId, itemId: FanboxPostItemId, onDownload: (Float) -> Unit): HttpStatement
Link copied to clipboard
suspend fun downloadPostImage(postId: FanboxPostId, itemId: FanboxPostItemId, onDownload: (Float) -> Unit): HttpStatement
Link copied to clipboard
suspend fun downloadPostThumbnailImage(postId: FanboxPostId, itemId: FanboxPostItemId, onDownload: (Float) -> Unit): HttpStatement
Link copied to clipboard
suspend fun followCreator(userId: FanboxUserId)
Link copied to clipboard
suspend fun getBells(page: Int): PageNumberInfo<FanboxBell>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getCreatorPosts(creatorId: FanboxCreatorId, cursor: FanboxCursor?, nextCursor: FanboxCursor?): PageCursorInfo<FanboxPost>
Link copied to clipboard
Link copied to clipboard
suspend fun getCreatorTags(creatorId: FanboxCreatorId): List<FanboxTag>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getHttpClient(isEnableContentNegotiation: Boolean = true): HttpClient
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getPostFromQuery(query: String, creatorId: FanboxCreatorId?, page: Int): PageNumberInfo<FanboxPost>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun likeComment(commentId: FanboxCommentId)
Link copied to clipboard
suspend fun likePost(postId: FanboxPostId)
Link copied to clipboard
Link copied to clipboard
suspend fun searchTags(query: String): List<FanboxTag>
Link copied to clipboard
suspend fun setCookies(cookies: List<Cookie>, url: String = "https://www.fanbox.cc", reset: Boolean = false)
Link copied to clipboard
suspend fun setFanboxSessionId(sessionId: String)
Link copied to clipboard
suspend fun unfollowCreator(userId: FanboxUserId)
Link copied to clipboard
suspend fun updateCsrfToken()