VK API Client

This is a base pure rust implementation of VK API client. The client supports zstd compression and msgpack format of VK API. It's works with http2 only connections.

See the library documentation or VK API documentation for more.

Usage

```rust use vkclient::VkApi;

fn main() { let client: VkApi = vkclient::VkApiBuilder::new(access_token).into(); .. } ```

```rust use vkclient::{VkApi, VkApiError, List}; use serde::{Deserialize, Serialize};

async fn getusersinfo(client: &VkApi) -> Result, VkApiError> { client.sendrequest("users.get", UsersGetRequest { userids: List(vec![1,2]), fields: List(vec!["id", "sex"]), }).await }

[derive(Serialize)]

struct UsersGetRequest<'a> { user_ids: List>, fields: List>, }

[derive(Deserialize)]

struct UsersGetResponse { id: i64, firstname: String, lastname: String, sex: u8, } ```