https://github.com/libninjacom/primer-rs
  
  
    primer client, generated from the OpenAPI spec 
    https://github.com/libninjacom/primer-rs
  
openapi primer rust
        Last synced: 2 months ago 
        JSON representation
    
primer client, generated from the OpenAPI spec
- Host: GitHub
- URL: https://github.com/libninjacom/primer-rs
- Owner: libninjacom
- License: mit
- Created: 2022-10-21T02:19:08.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-21T02:45:13.000Z (about 3 years ago)
- Last Synced: 2025-08-22T06:28:15.906Z (2 months ago)
- Topics: openapi, primer, rust
- Language: Rust
- Homepage: https://docs.rs/primer-api/
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
 
Awesome Lists containing this project
README
          
primer client, generated from the OpenAPI spec.
# Usage
```rust
use primer_api::PrimerClient;
use primer_api::model::*;
#[tokio::main]
async fn main() {
    let client = PrimerClient::from_env();
    let response = client
        .retrieve_client_side_token_client_session_get()
        .client_token("your client token")
        .send()
        .await
        .unwrap();
    println!("{:#?}", response);
}
```
This example loads configuration from environment variables, specifically:
* `PRIMER_BASE_URL`
* `PRIMER_API_KEY_AUTH`
# Installation
Add this to your Cargo.toml:
```toml
[dependencies]
primer-api = "0.1.0"
```
# Documentation
* [Client Library Documentation](https://docs.rs/primer-api)
You can see working examples of every API call in the `examples/` directory.
# Contributing
Contributions are welcome!
*Library created with [Libninja](https://www.libninja.com).*