midas/sdk/twitter

Functions

pub fn auth_redirect(
  redirect: Uri,
) -> Result(#(String, String), String)
pub fn auth_url(
  client_id: String,
  redirect_uri: String,
  scopes: List(String),
  state: String,
  challenge: String,
) -> String
pub fn authenticate(
  client_id: String,
  redirect_uri: String,
  scopes: List(String),
) -> Effect(String)
pub fn create_tweet(
  token: String,
  text: String,
) -> Effect(Response(BitArray))
pub fn create_tweet_request(
  token: String,
  text: String,
) -> Request(BitArray)
pub fn do_authenticate(
  client_id: String,
  redirect_uri: String,
  scopes: List(String),
  state: String,
  challenge: String,
) -> Effect(String)
pub fn token_request(
  client_id: String,
  redirect_uri: String,
  code_verifier: String,
  code: String,
) -> Request(BitArray)
pub fn token_response(
  response: Response(BitArray),
) -> Result(String, a)
pub fn user_by_username(
  token: String,
  username: String,
) -> Effect(Response(BitArray))
pub fn user_by_username_request(
  token: String,
  username: String,
) -> Request(BitArray)
pub fn user_timeline(
  token: String,
  user_id: String,
) -> Effect(Dynamic)
pub fn user_timeline_request(
  token: String,
  user_id: String,
) -> Request(BitArray)
pub fn user_timeline_response(
  response: Response(BitArray),
) -> Result(Dynamic, a)
Search Document