vika.rust
👋 Introduce
🦀 rust for vikadata api. To use this crate, it's good for you to understand some vikadata's concept. for example, space, node, datasheet, view, field, record and soon. You can go here, it's vika office produce manual.
vikadata is a Commercial version of Open Source APITable which added full enterprise-ready features. Vikadata is the on-line visual database. It means that we can save structured data to vikadata by vikadata api , when we want to make some interesting and fun tools. Instead of using heavy database
🚀 Using
🌌 Firstly, adding vika_community crate to your dependence.
# Cargo.toml
[]
= { = "https://github.com/y-t99/vika.rust.git" }
🌠 Importing the crate, and create the vika_client by your vikadata's token.
use *;
let vika_client: VIKAClient= new;
🪐 Querying your all spaces.
let spaces: = vika_client.spaces.query_all.unwrap;
for space in spaces
☁️ You can get the space's all nodes, and query one node's detail information.
let space_id = "spcXxx".to_string;
let node_id = "nodXxx".to_string;
// the space's all nodes
let nodes: = vika_client
.spaces.space
.nodes.query_all
.unwrap;
for node in nodes
// the specified node
let node: Node = vika_client
.spaces.space
.nodes.node
.unwrap;
println!