com.github.stormbit.vksdk.vkapi.Session.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vk-bot-sdk-kotlin Show documentation
Show all versions of vk-bot-sdk-kotlin Show documentation
The Kotlin library for working with VK api
The newest version!
package com.github.stormbit.vksdk.vkapi
import net.dongliu.requests.Cookie
import net.dongliu.requests.RequestBuilder
import net.dongliu.requests.Requests
class Session {
private val session = Requests.session()
val cookies: List get() = session.currentCookies()
fun get(url: String): RequestBuilder {
return session.get(url).cookies(cookies)
}
fun post(url: String): RequestBuilder {
return session.post(url).cookies(cookies)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy