A Notion client for Kotlin.
This library was created to be used with another project. Therefore, not everything is tested yet.
val integrationToken = "123456"
val knotion = Knotion(integrationToken)
val pageId = "123456"
knotion.pagesEndpoint.retrievePage(pageId)
settings.gradle.kts
dependencyResolutionManagement {
repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
}
}
build.gradle.kts
implementation("com.befrvnk:knotion-jvm:0.1.0-SNAPSHOT")
knotion.authenticationEndpoint.createToken()
knotion.blocksEndpoint.appendBlockChildren()
knotion.blocksEndpoint.retrieveBlock()
knotion.blocksEndpoint.retrieveBlockChildren()
knotion.blocksEndpoint.updateBlock()
knotion.blocksEndpoint.deleteBlock()
knotion.commentsEndpoint.createComment()
knotion.commentsEndpoint.retrieveComments()
knotion.databasesEndpoint.createDatabase()
knotion.databasesEndpoint.queryDatabasse()
knotion.databasesEndpoint.retrieveDatabase()
knotion.databasesEndpoint.updateDatabase()
knotion.pagesEndpoint.createPage()
knotion.pagesEndpoint.retrievePage()
knotion.pagesEndpoint.retrievePagePropertyItem()
knotion.pagesEndpoint.updatePageProperties()
knotion.searchEndpoint.searchByTitle()
knotion.usersEndpoint.listAllUsers()
knotion.usersEndpoint.retrieveUser()
knotion.usersEndpoint.retrieveMyUser()