Skip to content

Instantly share code, notes, and snippets.

@zupzup
Created October 29, 2020 13:22
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/56cf8fd004ea419680a87da575b24450 to your computer and use it in GitHub Desktop.
Save zupzup/56cf8fd004ea419680a87da575b24450 to your computer and use it in GitHub Desktop.
Timeular Public API Deps and Constants
use once_cell::sync::Lazy;
use reqwest::Client;
use serde::{Deserialize, Serialize};
use std::env;
use tokio::fs;
type Error = Box<dyn std::error::Error>;
static CLIENT: Lazy<Client> = Lazy::new(|| Client::new());
const BASE_URL: &str = "https://api.timeular.com/api/v3";
const REPORT_FILE: &str = "./report.csv";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment