[−][src]Struct kuon::TwitterAPI
Implementations
impl TwitterAPI
[src]
pub fn encode(target: &str) -> PercentEncode
[src]
impl TwitterAPI
[src]
pub fn builder() -> ClientBuilder<(), (), (), ()>
[src]
Creates ClientBuilder
that helps construct a configured TwitterAPI
.
This is exactly equivalent to ClientBuilder::new
.
pub async fn new_using_env() -> Result<Self>
[src]
impl TwitterAPI
[src]
pub async fn favorite<'_, '_>(&'_ self, id: &'_ str) -> Result<FavoriteResult>
[src]
impl TwitterAPI
[src]
pub async fn retweet<'_, '_>(&'_ self, id: &'_ str) -> Result<RetweetResult>
[src]
impl TwitterAPI
[src]
pub async fn search_tweets<'_, '_>(
&'_ self,
query: &'_ str
) -> Result<SearchResult>
[src]
&'_ self,
query: &'_ str
) -> Result<SearchResult>
pub async fn search_tweets_with_params<'_, '_, '_, '_, '_>(
&'_ self,
query: &'_ str,
params: &'_ HashMap<&'_ str, &'_ str>
) -> Result<SearchResult>
[src]
&'_ self,
query: &'_ str,
params: &'_ HashMap<&'_ str, &'_ str>
) -> Result<SearchResult>
pub async fn premium_search_30days<'_, '_, '_, '_, '_>(
&'_ self,
params: &'_ HashMap<&'_ str, &'_ str>,
devenv_name: &'_ str
) -> Result<PremiumSearchResult>
[src]
&'_ self,
params: &'_ HashMap<&'_ str, &'_ str>,
devenv_name: &'_ str
) -> Result<PremiumSearchResult>
pub async fn premium_search_fullarchive<'_, '_, '_, '_, '_>(
&'_ self,
params: &'_ HashMap<&'_ str, &'_ str>,
devenv_name: &'_ str
) -> Result<PremiumSearchResult>
[src]
&'_ self,
params: &'_ HashMap<&'_ str, &'_ str>,
devenv_name: &'_ str
) -> Result<PremiumSearchResult>
impl TwitterAPI
[src]
pub async fn tweet<'_, '_>(&'_ self, status: &'_ str) -> Result<TweetResult>
[src]
Example
let api = kuon::TwitterAPI::new_using_env().await?; let res = api.tweet("これはてすとなんだなも").await?;
pub async fn tweet_with_params<'_, '_, '_, '_, '_>(
&'_ self,
status: &'_ str,
params: &'_ HashMap<&'_ str, &'_ str>
) -> Result<TweetResult>
[src]
&'_ self,
status: &'_ str,
params: &'_ HashMap<&'_ str, &'_ str>
) -> Result<TweetResult>
Trait Implementations
impl Clone for TwitterAPI
[src]
fn clone(&self) -> TwitterAPI
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TwitterAPI
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TwitterAPI
impl Send for TwitterAPI
impl Sync for TwitterAPI
impl Unpin for TwitterAPI
impl !UnwindSafe for TwitterAPI
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,