All Downloads are FREE. Search and download functionalities are using the official Maven repository.

notion.api.v1.http.UserAgent.kt Maven / Gradle / Ivy

package notion.api.v1.http

import notion.api.Metadata

object UserAgent {

    fun buildUserAgent(): String {
        val libraryVersion = Metadata.VERSION
        val library = "notion-sdk-jvm/$libraryVersion"
        val repo = "https://github.com/seratch/notion-sdk-jvm"
        val jvm = "" + System.getProperty("java.vm.name") + "/" + System.getProperty("java.version") + ""
        val os = "" + System.getProperty("os.name") + "/" + System.getProperty("os.version") + ""
        return "$library; $repo; $jvm; $os"
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy