Struct todoist_rs::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
Client to make request to the todoist API
Methods
impl Client
[src]
pub fn new(tok: &str) -> Client
[src]
Create a new with todoist API client with auth token tok
pub fn new_with_sync(tok: &str, sync_tok: &str) -> Client
[src]
create a new client with a sync token
pub fn sync(&mut self, what: &[ResourceType]) -> Result<SyncResponse, Error>
[src]
Request resources from todoist
pub fn send(&mut self, cmd: &[&Command]) -> Result<CommandResponse, Error>
[src]
Update a user's resources