Crates.io | vkapi |
lib.rs | vkapi |
version | 0.2.0 |
source | src |
created_at | 2020-04-17 18:52:30.198457 |
updated_at | 2020-05-03 14:17:11.188758 |
description | Rust create for interacting with VK API |
homepage | |
repository | https://github.com/DuckerMan/vk_api |
max_upload_size | |
id | 231272 |
size | 140,447 |
It's in early stage, so we need your contribution
You can get it by 3 ways:
direct_auth()
methodhttps://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
Your best friends are param!
macro and request
method!
let mut vk_api = vkapi::VK::new("5.103", "en");
vk_api.set_access_token("token".into());
let mut params = param!{"group_id" => "194950468", "fields" => "bdate,first_name,last_name"};
let response = vk_api
.request("groups.getMembers", &mut params)
.await
.unwrap();
Here you go!
@MikailBag, @ozkriff and Bulat Idiatullin