rvk
A crate for accessing VK (VKontakte) API in Rust (synchronously).
Changelog is available here.
Modules
api
- works with the API;error
- handles errors that may occur during an API call;methods
- contains API methods;objects
- contains API objects. See also note about objects.
Usage
Add the dependency to your project:
Cargo.toml
[]
= "0.11"
Now you can take a look at rvk
's API documentation to learn more about the available functions.
Example
To use this example, you will also need the serde_json
crate to deserialize the API response:
Cargo.toml
[]
= "1.0"
main.rs
use ;
use from_value;
Notes
Objects
Due to the nature of the VK API documentation, it is not always clear if the value is always passed or not, and sometimes the data type is not defined.
If you spot any mistakes or bugs, please report them!