Struct kuon::TwitterAPI[][src]

pub struct TwitterAPI { /* fields omitted */ }

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 raw_get<T>(
    &self,
    endpoint: &str,
    params: &HashMap<&str, &str>
) -> Result<T> where
    T: DeserializeOwned
[src]

pub async fn raw_post<T>(
    &self,
    endpoint: &str,
    params: &HashMap<&str, &str>
) -> Result<T> where
    T: DeserializeOwned
[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]

pub async fn search_tweets_with_params(
    &self,
    query: &str,
    params: &HashMap<&str, &str>
) -> Result<SearchResult>
[src]

pub async fn premium_search_30days(
    &self,
    params: &HashMap<&str, &str>,
    devenv_name: &str
) -> Result<PremiumSearchResult>
[src]

pub async fn premium_search_fullarchive(
    &self,
    params: &HashMap<&str, &str>,
    devenv_name: &str
) -> Result<PremiumSearchResult>
[src]

impl TwitterAPI[src]

pub async fn show(self, id: u64) -> Result<Tweet>[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]

impl TwitterAPI[src]

pub async fn follwers_ids(
    &self,
    params: &HashMap<&str, &str>
) -> Result<FollowersIdsResult>
[src]

pub async fn follwers_list(
    &self,
    params: &HashMap<&str, &str>
) -> Result<FollowersListResult>
[src]

Trait Implementations

impl Clone for TwitterAPI[src]

impl Debug for TwitterAPI[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.