# DHL tracking for business customer with Rust. ![workflow](https://github.com/Thomas-Zenkel/dhl_tracking/actions/workflows/rust.yml/badge.svg) Sandbox request: ```rust use dhl_tracking::SendungsverfolgungBuilder; fn main() { let sv = SendungsverfolgungBuilder::new() .sandbox(true) .passwd_entwicklerportal("your login-password entwicklerportal".to_string()) .entwickler_id("EntwicklerID from Konto".to_owned()) .build() .unwrap(); println!("{:?}", sv.get_piece_detail("00340434161094022115").unwrap()); } ``` Production request: ```rust use dhl_tracking::SendungsverfolgungBuilder; let sendungsverfolgung = SendungsverfolgungBuilder::new() .zt_kennung("ztxxxxx".to_owned()) .passwd_zt_kennung("your password".to_owned()) .app_token("your token".to_owned()) .app_id("your app id".to_owned()) .sandbox(false) .build() .unwrap(); let delivery_data = sendungsverfolgung .get_piece_detail("00300000000000000000") .unwrap(); ``` Result of a sandbox query (returns always same example data): ```xml ```