pub struct GetPocket {
pub consumer_key: String,
pub redirect_uri: String,
pub token: Token,
pub reqwester: Reqwester,
}
Fields§
§consumer_key: String
§redirect_uri: String
§token: Token
§reqwester: Reqwester
Implementations§
source§impl GetPocket
impl GetPocket
pub async fn init<F, C>( consumer_key: String, redirect_uri: String, store_fn: F, opener_fn: C ) -> Result<Self>where F: for<'a> FnOnce(&'a str), C: for<'b> FnOnce(&'b str) -> Result<bool>,
pub async fn new( consumer_key: String, redirect_uri: String, access_token: String ) -> Result<Self>
pub async fn add_item_with_params<'a>( &self, url: &'a str, title: Option<&'a str>, tags: Option<&[&'a str]>, tweet_id: Option<&'a str> ) -> Result<RecordAdded>
sourcepub async fn add_item<'a>(&self, url: &'a str) -> Result<RecordAdded>
pub async fn add_item<'a>(&self, url: &'a str) -> Result<RecordAdded>
adding a single item
sourcepub async fn bulk_modify_raw_params<'a>(
&self,
params: &'a str
) -> Result<RecordModified>
pub async fn bulk_modify_raw_params<'a>( &self, params: &'a str ) -> Result<RecordModified>
https://getpocket.com/developer/docs/v3/modify