Skip to content

Instantly share code, notes, and snippets.

@zupzup
Created October 29, 2020 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zupzup/f9baf1b74908766dfc34b5cac6a57bed to your computer and use it in GitHub Desktop.
Save zupzup/f9baf1b74908766dfc34b5cac6a57bed to your computer and use it in GitHub Desktop.
Timeular Public API sign_in 1
#[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