Skip to content

//core/com.petersamokhin.vksdk.core.client/VkApiClient/get

get

[common]\

@JvmOverloads()

suspend fun get(method: String, params: Parameters = Parameters()): JsonElement

Call some API method and receive the response string as JsonElement. Executes the request!

[common]\

@JvmOverloads()

fun get(request: VkRequest, callback: Callback = Callback.empty())

Call some API method and receive the response string, parsed into JsonElement

Parameters

common

request API request wrapper
callback Callback to handle the result or an error
Executes the request!

[common]\ fun get(item: BatchRequestItem)

Put some API call into queue.

Executes the request!

[common]\ fun get(vararg items: BatchRequestItem)

Call some API method and receive the response string, parsed into JsonElement

Parameters

common

items Wrappers of the requests and callbacks
Executes the request!

[common]\ fun get(items: Collection<BatchRequestItem>)

Put some API call into queue.

Executes the requests!