VK API

It's in early stage, so we need your contribution

Yoo, how to get access_token?

You can get it by 3 ways: * Direct auth * call direct_auth() method * or by this link: https://api.vk.com/oauth/token?grant_type=password&client_id=2274003&scope=notify,photos,friends,audio,video,notes,pages,docs,status,questions,offers,wall,groups,messages,notifications,stats,ads,offline&client_secret=hHbZxrka2uZ6jB1inYsH&username=YOUR_PHONE_OR_MAIL&password=YOUR_PASSWORD * Service token * Create you application here and copy service token * Enter in your group, click Manage, in right menu click API usage and then create accesstoken Last way is a prefered way, because accesstoken of user has some limitations

Quick Example

```rust let mut params = vkapi::Params::new(); let params = params.add("groupid", "142102660").add("fields", "bdate"); // add params

let mut vkapi = vkapi::VK::new("5.103", "ru"); // 5.103 is api version vkapi.setaccesstoken("ACCESSTOKEN".tostring()); // Access token is your token (how to get it see above) let response = vkapi.request("groups.getMembers", params).unwrap(); // call groups.getMembers method with our parametres for user in response["response"]["items"].members() { println!("Имя: {}, Фамилия: {}, Дата рождения: {}", user["firstname"], user["lastname"], user["bdate"]); // Print all users information } ```

I want more examples!

Here you go!

Plans

Thanks guys from Rust chat, namely:

@MikailBag, @ozkriff and Bulat Idiatullin