Crates.io | storyboard-client |
lib.rs | storyboard-client |
version | 0.2.1 |
source | src |
created_at | 2018-10-14 23:48:43.884899 |
updated_at | 2018-10-16 20:04:52.785829 |
description | A client for StoryBoard API |
homepage | https://github.com/ericho/storyboard-client |
repository | https://github.com/ericho/storyboard-client |
max_upload_size | |
id | 90239 |
size | 20,276 |
This little project is an attempt to write a storyboard api client.
Currently only the basic operations are supported and just for querying. In the future we might consider to perform write/delete operations.
Add this to your Cargo.toml
[dependencies]
storyboard_client = "*"
and this into your code:
extern crate storyboard_client;
A simple example to search all the stories with the keyword stx
.
extern crate storyboard_client;
use storyboard_client::Client;
fn main() {
let client = Client::new("https://storyboard.openstack.org/api/v1");
let stories = client.search_stories("stx").unwrap();
for s in &stories {
println!("{} - {}", s.id, s.title);
}
}
See more examples in the examples folder.
failure
crate.