Struct kuon::TwitterAPI [−][src]
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]
pub fn oauth_token(&self) -> OAuthToken
[src]
impl TwitterAPI
[src]
pub async fn raw_get<T>(
&self,
endpoint: &str,
params: &HashMap<&str, &str>,
query: Option<&HashMap<&str, &str>>
) -> Result<T> where
T: DeserializeOwned,
[src]
&self,
endpoint: &str,
params: &HashMap<&str, &str>,
query: Option<&HashMap<&str, &str>>
) -> Result<T> where
T: DeserializeOwned,
pub async fn raw_post<T>(
&self,
endpoint: &str,
params: &HashMap<&str, &str>,
query: Option<&HashMap<&str, &str>>
) -> Result<T> where
T: DeserializeOwned,
[src]
&self,
endpoint: &str,
params: &HashMap<&str, &str>,
query: Option<&HashMap<&str, &str>>
) -> Result<T> where
T: DeserializeOwned,
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]
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]
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>
impl TwitterAPI
[src]
pub async fn follwers_ids(
&self,
params: &HashMap<&str, &str>
) -> Result<FollowersIdsResult>
[src]
&self,
params: &HashMap<&str, &str>
) -> Result<FollowersIdsResult>
pub async fn follwers_list(
&self,
params: &HashMap<&str, &str>
) -> Result<FollowersListResult>
[src]
&self,
params: &HashMap<&str, &str>
) -> Result<FollowersListResult>
Trait Implementations
impl Clone for TwitterAPI
[src]
fn clone(&self) -> TwitterAPI
[src]
pub 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,
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, 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
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>,