[−][src]Struct instapaper::Client
The client instance to perform actions on. The consumer_key
and consumer_secret
are
obtained through Instapaper's API documentation. The oauth_key
and oauth_secret
are
obtained with the user's username
, password
, consumer_key
, and consumer_secret
by
calling authenticate()
on a Client.
Fields
consumer_key: String
consumer_secret: String
oauth_key: Option<String>
oauth_secret: Option<String>
Methods
impl Client
[src]
impl Client
pub fn verify(&self) -> Result<User>
[src]
pub fn verify(&self) -> Result<User>
Verifies credentials, mostly used for testing.
pub fn archive(&self, bookmark_id: i64) -> Result<Bookmark>
[src]
pub fn archive(&self, bookmark_id: i64) -> Result<Bookmark>
Move a Bookmark
to the archive folder.
pub fn bookmarks_in(&self, folder: &str) -> Result<List>
[src]
pub fn bookmarks_in(&self, folder: &str) -> Result<List>
List all bookmarks and highlights in a folder. You'll need to obtain the folder id through either the API
or the URL on Instapaper. unread
and archive
work as strings.
pub fn bookmarks(&self) -> Result<List>
[src]
pub fn bookmarks(&self) -> Result<List>
List all bookmarks and highlights in the unread
folder.
pub fn add(&self, url: &str, title: &str, description: &str) -> Result<Bookmark>
[src]
pub fn add(&self, url: &str, title: &str, description: &str) -> Result<Bookmark>
Add a bookmark. Pass a blank title
and description
if you want Instapaper's default.
Trait Implementations
impl Clone for Client
[src]
impl Clone for Client
fn clone(&self) -> Client
[src]
fn clone(&self) -> Client
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for Client
[src]
impl Default for Client
impl Debug for Client
[src]
impl Debug for Client
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Erased for T
impl<T> Erased for T