Expand description
§Launchpad API
This crate provides a Rust interface to the Launchpad API. It is generated from the Launchpad API WADL document.
§Usage
use url::Url;
#[cfg(feature = "api-v1_0")]
{
let client = launchpadlib::Client::anonymous("just+testing");
let service_root = launchpadlib::v1_0::service_root(&client).unwrap();
let people = service_root.people().unwrap();
let person = people.get_by_email(&client, "jelmer@jelmer.uk").unwrap();
let ssh_keys = person.sshkeys(&client).unwrap().map(|k| k.unwrap().keytext).collect::<Vec<_>>();
println!("SSH Keys: {:?}", ssh_keys);
}Re-exports§
- pub use client::Client;
Modules§
- Signing of requests for Launchpad.
- TheClientstruct is a wrapper aroundreqwest::blocking::Clientthat provides OAuth1 authentication for requests.
- Pagination support.
- The original version in the v1.0 API
Enums§
- The error type for this crate.
Constants§
- The default user agent, used if none is provided
Traits§
- The root of the web service.