Beeswax
An easy to use CRUD client for the Beeswax API
Warning
This is a very early version of this crate with only a few resources so far.
ToDo:
- Add the rest of the resources
- Make runtime agnostic
- Add blocking version of the client
Usage
Tell the builder what the base url you'd like to connect to is, then create an Authentication object to send to the api to authenticate yourself.
use ;
let user = var?;
let password = var?;
let url = "https://buzzkey.api.beeswax.com".to_string;
let beeswax_api = builder
.auth
.await?;
You can then create, update, read and delete resources.
use ;
let create_advertiser = CreateAdvertiser ;
let mut created_advertiser = beeswax_api.create.await?;
created_advertiser.active = Some;
let updated_advertiser = beeswax_api.update.await?;
let read_advertiser = ReadAdvertiser ;
let read_advertiser = beeswax_api.read.await?.pop.unwrap;
beeswax_api.delete.await?;