[][src]Struct kuon::TwitterAPI

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 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 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]

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, 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.