1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
//!
//! Lightspark Rust SDK is a thin wrapper around the GraphQL API that provides an easy way to
//! integrate with the Lightspark systems in a Rust environment.
//!
//! # Getting Started
//!
//! After obtain an API token, a client can be initiate.
//! ```
//! use lightspark::request::auth_provider::AccountAuthProvider;
//! use lightspark::client::LightsparkClient;
//! use lightspark::key::RSASigningKey;
//!
//! let api_id = "<your api token id>";
//! let api_token = "<your api token secret>";
//! let auth_provider = AccountAuthProvider::new(api_id.to_string(), api_token.to_string());
//! let client = match LightsparkClient::<RSASigningKey>::new(auth_provider) {
//! Ok(value) => value,
//! Err(err) => {
//! println!("{}", err);
//! return;
//! }
//! };
//! ```
//!
//! You are now ready to use the Lightspark SDK!
//!
//! See more examples in examples/example.rs
//!
/// The version of this library.
pub const VERSION: &str = "0.10.2";