Crate voyager_client[−][src]
Expand description
Sample program with voyager_client
use voyager_client::{donki_client, timing};
// Run this function only once - Or, cargo install this crate to install the CLI binaries, then run voyager set key
keys::set_key("[YOUR_API_KEY]");
// Instantiate a Base Client
let base_donki_client = donki_client::Solar::new();
// Setup timing parameters
let start = String::from("2018-01-01");
let end = timing::today();
// Query the API
let res = base_donki_client.query(start, end).unwrap();This will fetch a response from the magnetic storms endpoint, and convert it into a prettyfied String in JSON format
Modules
For interacting with NASA’s Picture of the Day endpoint.
Contains methods for interacting with the DONKI client library.
For interacting with the Insight Rover API.
Handling API keys for NASA’s open APIs. Includes methods for storing, and retrieving keys for any user
For interacting with the Near Earth Objects API.
For handling different request timings. Known overflow errors at the moment, so use with caution. Use manual dates if possible.
Contains methods for prettyfying JSON responses.
