anylist_rs 0.4.0

Interact with the grocery list management app AnyList's undocumented API. Unofficial.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::time::{SystemTime, UNIX_EPOCH};

use uuid::Uuid;

pub fn generate_id() -> String {
    Uuid::simple(Uuid::new_v4()).to_string()
}

pub fn current_timestamp() -> f64 {
    SystemTime::now()
        .duration_since(UNIX_EPOCH)
        .unwrap()
        .as_secs_f64()
}