Rust SDK for OP REST API
To be published to crates.io
See apis crate for all available clients. Example of getting account data:
```rust use opapisdk::apis::accounts::Accounts; use opapisdk::options::Options;
async fn main() { let options = Options::newdev(String::from("XAPIKEY")) .withversion("v3".to_string()); let accounts = Accounts::new(options).accounts().await.unwrap(); println!("{:?}", accounts); } ```
Additional examples available in the Examples directory.
See requests for required headers.
For further reading, please see our API documentation
Few guidelines for developing this library:
cargo fmt
for all changescargo clippy --workspace --all-targets --verbose --all-features
to find possible lint errors and warningscargo test
before pushing to remotecargo doc
--open
Tests depend to real sandbox data.
X_API_KEY=<your api key> cargo test
To enable debug logging from the library set up the RUST_LOG environment variable
export RUST_LOG=op_api_sdk=debug