rustgoogletasks

Rust Client for Google Tasks API v1

Example

toml [dependencies] gtasks = "0.4" Read tasks

```rust,norun // create a service let service = gtasks::Service::new("googletoken").unwrap();

// obtain tasklist id let tasklists = service.listtasklists(None).unwrap(); let listid = tasklists.items[0].id.unwrap();

// print tasks from the list let opts = gtasks::TaskOptions{ maxresults: Some(5), showcompleted: Some(true), show_hidden: Some(true), };

let tasks = service.listtasks(listid, opts, None).unwrap();

if let Some(tasks) = tasks { let items = tasks.unwrap();

for item in items {
    println!("{:?}", item.title);
}

} ```

License

License under either or: