rusty-box 0.4.1-alpha

Box.com API wrapper
Documentation
1
2
3
4
5
6
7
pub fn save_access_token(json: String) {
    std::fs::write(".token.cache.json", json).expect("Unable to save access token")
}

pub fn load_access_token() -> std::io::Result<String> {
    std::fs::read_to_string(".token.cache.json")
}