[−][src]Struct newsblur_api::NewsBlurApi
Implementations
impl NewsBlurApi
[src]
pub fn new(
url: &Url,
username: &str,
password: &str,
cookie: Option<String>
) -> Self
[src]
url: &Url,
username: &str,
password: &str,
cookie: Option<String>
) -> Self
Create a new instance of the NewsBlurApi
pub async fn login(&mut self, client: &Client) -> Result<String, ApiError>
[src]
Login to NewsBlur. This must be called before other functions
On success returns the cookie used for login
pub async fn logout(&self, client: &Client) -> Result<(), ApiError>
[src]
Logout of NewsBlur
pub async fn signup(&self, _client: &Client) -> Result<(), ApiError>
[src]
Sign up to NewsBlur
pub async fn search_feed(
&self,
client: &Client,
address: &str
) -> Result<(), ApiError>
[src]
&self,
client: &Client,
address: &str
) -> Result<(), ApiError>
Retrieve information about a feed from its website or RSS address.
pub async fn get_feeds(&self, client: &Client) -> Result<Value, ApiError>
[src]
Retrieve a list of feeds to which a user is actively subscribed.
pub async fn favicons(
&self,
client: &Client,
feed_id: &str
) -> Result<Value, ApiError>
[src]
&self,
client: &Client,
feed_id: &str
) -> Result<Value, ApiError>
Retrieve a list of favicons for a list of feeds. Used when combined with /reader/feeds and include_favicons=false, so the feeds request contains far less data. Useful for mobile devices, but requires a second request.
pub async fn get_original_page(
&self,
client: &Client,
id: &str
) -> Result<String, ApiError>
[src]
&self,
client: &Client,
id: &str
) -> Result<String, ApiError>
Retrieve the original page from a single feed.
pub async fn get_original_text(
&self,
client: &Client,
id: &str
) -> Result<String, ApiError>
[src]
&self,
client: &Client,
id: &str
) -> Result<String, ApiError>
Retrieve the original page from a single feed.
pub async fn refresh_feeds(&self, client: &Client) -> Result<Value, ApiError>
[src]
Up-to-the-second unread counts for each active feed. Poll for these counts no more than once a minute.
pub async fn get_read_stories(
&self,
client: &Client,
page: u32
) -> Result<Value, ApiError>
[src]
&self,
client: &Client,
page: u32
) -> Result<Value, ApiError>
Feed of previously read stories.
pub async fn get_stories(
&self,
client: &Client,
id: &str,
include_content: bool,
page: u32
) -> Result<Value, ApiError>
[src]
&self,
client: &Client,
id: &str,
include_content: bool,
page: u32
) -> Result<Value, ApiError>
Retrieve stories from a single feed.
pub async fn mark_stories_read(
&self,
client: &Client,
story_hash: &str
) -> Result<(), ApiError>
[src]
&self,
client: &Client,
story_hash: &str
) -> Result<(), ApiError>
Mark stories as read using their unique story_hash.
pub async fn mark_story_unread(
&self,
client: &Client,
story_hash: &str
) -> Result<(), ApiError>
[src]
&self,
client: &Client,
story_hash: &str
) -> Result<(), ApiError>
Mark a single story as unread using its unique story_hash.
pub async fn mark_story_hash_as_starred(
&self,
client: &Client,
story_hash: &str
) -> Result<(), ApiError>
[src]
&self,
client: &Client,
story_hash: &str
) -> Result<(), ApiError>
Mark a story as starred (saved).
pub async fn mark_story_hash_as_unstarred(
&self,
client: &Client,
story_hash: &str
) -> Result<(), ApiError>
[src]
&self,
client: &Client,
story_hash: &str
) -> Result<(), ApiError>
Mark a story as unstarred (unsaved).
pub async fn get_unread_story_hashes(
&self,
client: &Client
) -> Result<Value, ApiError>
[src]
&self,
client: &Client
) -> Result<Value, ApiError>
The story_hashes of all unread stories. Useful for offline access of stories and quick unread syncing. Use include_timestamps to fetch stories in date order.
pub async fn get_stared_story_hashes(
&self,
client: &Client
) -> Result<Value, ApiError>
[src]
&self,
client: &Client
) -> Result<Value, ApiError>
pub async fn get_river_stories(
&self,
client: &Client,
hashes: &[&str]
) -> Result<Value, ApiError>
[src]
&self,
client: &Client,
hashes: &[&str]
) -> Result<Value, ApiError>
Retrieve up to 100 stories when specifying by story_hash.
pub async fn mark_feed_read(
&self,
client: &Client,
feed_id: &str
) -> Result<(), ApiError>
[src]
&self,
client: &Client,
feed_id: &str
) -> Result<(), ApiError>
pub async fn mark_all_read(&self, client: &Client) -> Result<(), ApiError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for NewsBlurApi
[src]
impl Send for NewsBlurApi
[src]
impl Sync for NewsBlurApi
[src]
impl Unpin for NewsBlurApi
[src]
impl UnwindSafe for NewsBlurApi
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,