primer client, generated from the OpenAPI spec.
```rust use primerapi::PrimerClient; use primerapi::model::*;
async fn main() { let client = PrimerClient::fromenv(); let response = client .retrieveclientsidetokenclientsessionget() .clienttoken("your client token") .send() .await .unwrap(); println!("{:#?}", response); }
```
This example loads configuration from environment variables, specifically:
PRIMER_BASE_URL
PRIMER_API_KEY_AUTH
Add this to your Cargo.toml:
toml
[dependencies]
primer-api = "0.1.0"
You can see working examples of every API call in the examples/
directory.
Contributions are welcome!
Library created with Libninja.