Created
October 29, 2020 13:28
-
-
Save zupzup/f9baf1b74908766dfc34b5cac6a57bed to your computer and use it in GitHub Desktop.
Timeular Public API sign_in 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[tokio::main] | |
async fn main() -> Result<(), Error> { | |
let api_key = env::var("TMLR_API_KEY").expect("TMLR_API_KEY needs to be set"); | |
let api_secret = env::var("TMLR_API_SECRET").expect("TMLR_API_SECRET needs to be set"); | |
println!("signing in.."); | |
let token = sign_in(api_key, api_secret).await?; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment