2 unstable releases
Uses old Rust 2015
0.2.0 | Dec 14, 2016 |
---|---|
0.1.0 | Dec 12, 2016 |
#1042 in #service
11KB
258 lines
Simplenote API - link:Documentation
:toc:
Usage
Add the following line to your Cargo.toml
:
[source,toml]
[dependencies]
simplenote = "0.1.0"
In your crate root, add the following:
[source,rust]
extern crate simplenote;
API
pub fn new<T: Display, U: Display>(username: T, password: U) -> Result<Simplenote, simplenote::Error>;
pub fn notes(&self) -> Result<Vec<Note>, simplenote::Error>;
pub fn notes_filtered(&self, filters: Vec<Filters>) -> Result<Vec<Note>, simplenote::Error>;
pub fn get_note(&self, note_id: &str) -> Result<Note, simplenote::Error>;
pub fn get_note_version<I: Into<Option<u32>>>(&self, note_id: &str, version: I) -> Result<Note, simplenote::Error>;
pub fn add_note<I: Into<Note>>(&self, note: I) -> Result<Note, simplenote::Error>;
pub fn update_note(&self, note: &mut Note) -> Result<(), simplenote::Error>;
pub fn trash_note(&self, note_id: &str) -> Result<Note, simplenote::Error>;
pub fn delete_note(&self, note_id: &str) -> Result<(), simplenote::Error>;
Dependencies
~10–19MB
~292K SLoC