Skip to content

Instantly share code, notes, and snippets.

@zupzup
Created December 2, 2020 11:59
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/6dd786f5f70e4c66f8c52625531acdef to your computer and use it in GitHub Desktop.
Save zupzup/6dd786f5f70e4c66f8c52625531acdef to your computer and use it in GitHub Desktop.
Timeular Webhooks Env
#[tokio::main]
async fn main() -> Result<(), Error> {
let public_url = env::var("PUBLIC_URL").expect("PUBLIC_URL needs to be set");
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