ExTwitter.Behaviour behaviour (extwitter v0.14.0) View Source

A definition of the intended behavior of the core functions.

Link to this section Summary

Callbacks

Link to this section Types

Specs

stream_control_type() :: :stop

Link to this section Callbacks

Specs

access_token(String.t(), String.t()) ::
  {:ok, ExTwitter.Model.AccessToken.t()} | {:error, String.t()}
Link to this callback

add_list_members(integer, list)

View Source

Specs

add_list_members(integer(), list()) :: [ExTwitter.Model.List.t()]

Specs

authenticate_url(String.t()) :: {:ok, String.t()} | {:error, String.t()}
Link to this callback

authenticate_url(t, map)

View Source

Specs

authenticate_url(String.t(), map()) :: {:ok, String.t()} | {:error, String.t()}

Specs

authorize_url(String.t()) :: {:ok, String.t()} | {:error, String.t()}

Specs

authorize_url(String.t(), map()) :: {:ok, String.t()} | {:error, String.t()}

Specs

Specs

configure() :: Keyword.t() | nil

Specs

configure(Keyword.t()) :: :ok

Specs

configure(:global | :process, Keyword.t()) :: :ok
Link to this callback

create_favorite(integer, t)

View Source

Specs

create_favorite(integer(), Keyword.t()) :: ExTwitter.Model.Tweet.t()

Specs

create_list(Keyword.t()) :: ExTwitter.Model.List.t()
Link to this callback

destroy_direct_message(integer)

View Source

Specs

destroy_direct_message(integer()) :: ExTwitter.Model.DirectMessage.t()
Link to this callback

destroy_direct_message(integer, t)

View Source

Specs

destroy_direct_message(integer(), Keyword.t()) ::
  ExTwitter.Model.DirectMessage.t()
Link to this callback

destroy_favorite(integer, t)

View Source

Specs

destroy_favorite(integer(), Keyword.t()) :: ExTwitter.Model.Tweet.t()

Specs

destroy_list(Keyword.t()) :: ExTwitter.Model.List.t()

Specs

destroy_status(integer()) :: ExTwitter.Model.Tweet.t()
Link to this callback

destroy_status(integer, t)

View Source

Specs

destroy_status(integer(), Keyword.t()) :: ExTwitter.Model.Tweet.t()

Specs

direct_message(integer() | String.t()) :: ExTwitter.Model.DirectMessage.t()

Specs

direct_messages() :: [ExTwitter.Model.DirectMessage.t()]

Specs

direct_messages(Keyword.t()) :: [ExTwitter.Model.DirectMessage.t()]

Specs

favorites() :: [ExTwitter.Model.Tweet.t()]

Specs

favorites(Keyword.t()) :: [ExTwitter.Model.Tweet.t()]

Specs

Specs

Specs

follower_ids(String.t() | integer() | Keyword.t()) :: ExTwitter.Model.Cursor.t()

Specs

follower_ids(String.t() | integer(), Keyword.t()) :: ExTwitter.Model.Cursor.t()

Specs

Specs

Specs

friend_ids(String.t() | integer() | Keyword.t()) :: ExTwitter.Model.Cursor.t()

Specs

Specs

Specs

Specs

geo_search(String.t()) :: [ExTwitter.Model.Place.t()]

Specs

geo_search(String.t(), Keyword.t()) :: [ExTwitter.Model.Place.t()]

Specs

home_timeline() :: [ExTwitter.Model.Tweet.t()]

Specs

home_timeline(Keyword.t()) :: [ExTwitter.Model.Tweet.t()]

Specs

list_members(Keyword.t()) :: [ExTwitter.Model.User.t()]

Specs

list_members(String.t(), String.t()) :: [ExTwitter.Model.User.t()]

Specs

list_members(String.t(), String.t(), Keyword.t()) :: [ExTwitter.Model.User.t()]

Specs

list_memberships() :: [ExTwitter.Model.List.t()]

Specs

list_memberships(Keyword.t()) :: [ExTwitter.Model.List.t()]

Specs

list_subscribers(Keyword.t()) :: [ExTwitter.Model.User.t()]

Specs

list_subscribers(String.t(), String.t()) :: [ExTwitter.Model.User.t()]
Link to this callback

list_subscribers(t, t, t)

View Source

Specs

list_subscribers(String.t(), String.t(), Keyword.t()) :: [
  ExTwitter.Model.User.t()
]

Specs

list_timeline(Keyword.t()) :: [ExTwitter.Model.Tweet.t()]

Specs

list_timeline(String.t(), String.t()) :: [ExTwitter.Model.Tweet.t()]

Specs

list_timeline(String.t(), String.t(), Keyword.t()) :: [
  ExTwitter.Model.Tweet.t()
]

Specs

Specs

Specs

lookup_status(String.t()) :: [ExTwitter.Model.Tweet.t()]

Specs

lookup_status(String.t(), Keyword.t()) :: [ExTwitter.Model.Tweet.t()]

Specs

mentions_timeline() :: [ExTwitter.Model.Tweet.t()]

Specs

mentions_timeline(Keyword.t()) :: [ExTwitter.Model.Tweet.t()]
Link to this callback

new_direct_message(arg1, t)

View Source

Specs

new_direct_message(String.t() | integer(), String.t()) ::
  ExTwitter.Model.DirectMessage.t()

Specs

rate_limit_status() :: map()

Specs

rate_limit_status(Keyword.t()) :: map()

Specs

request(:get | :post, String.t()) :: map()

Specs

request(:get | :post, String.t(), Keyword.t()) :: map()

Specs

request_token() :: ExTwitter.Model.RequestToken.t()

Specs

Specs

Specs

Specs

retweeter_ids(integer() | String.t()) :: [integer() | String.t()]

Specs

retweeter_ids(integer() | String.t(), Keyword.t()) :: [integer() | String.t()]

Specs

retweets(integer() | String.t()) :: [ExTwitter.Model.Tweet.t()]

Specs

Specs

retweets_of_me() :: [ExTwitter.Model.Tweet.t()]

Specs

retweets_of_me(Keyword.t()) :: [ExTwitter.Model.Tweet.t()]
Link to this callback

reverse_geocode(float, float)

View Source

Specs

reverse_geocode(float(), float()) :: [ExTwitter.Model.Place.t()]
Link to this callback

reverse_geocode(float, float, t)

View Source

Specs

reverse_geocode(float(), float(), Keyword.t()) :: [ExTwitter.Model.Place.t()]

Specs

Specs

Specs

search_next_page(String.t()) :: [map()]

Specs

sent_direct_messages() :: [ExTwitter.Model.DirectMessage.t()]

Specs

sent_direct_messages(Keyword.t()) :: [ExTwitter.Model.DirectMessage.t()]

Specs

Specs

Link to this callback

stream_control(pid, stream_control_type)

View Source

Specs

stream_control(pid(), stream_control_type()) :: :ok
Link to this callback

stream_control(pid, stream_control_type, list)

View Source

Specs

stream_control(pid(), stream_control_type(), [{:timeout, integer()}]) :: :ok

Specs

stream_filter(Keyword.t()) :: Enumerable.t()
Link to this callback

stream_filter(t, timeout)

View Source

Specs

stream_filter(Keyword.t(), timeout()) :: Enumerable.t()

Specs

stream_sample() :: Enumerable.t()

Specs

stream_sample(Keyword.t()) :: Enumerable.t()

Specs

stream_user() :: Enumerable.t()

Specs

stream_user(Keyword.t()) :: Enumerable.t()

Specs

stream_user(Keyword.t(), integer()) :: Enumerable.t()

Specs

Specs

Specs

Specs

unfollow(String.t() | integer()) :: ExTwitter.Model.User.t()

Specs

unretweet(integer()) :: ExTwitter.Model.Tweet.t()

Specs

Specs

Specs

Link to this callback

update_with_chunked_media(t, t, t)

View Source

Specs

update_with_chunked_media(String.t(), String.t(), String.t()) ::
  ExTwitter.Model.Tweet.t()
Link to this callback

update_with_chunked_media(t, t, t, t)

View Source

Specs

update_with_chunked_media(String.t(), String.t(), String.t(), Keyword.t()) ::
  ExTwitter.Model.Tweet.t()

Specs

update_with_media(String.t(), Keyword.t()) :: ExTwitter.Model.Tweet.t()
Link to this callback

update_with_media(t, t, t)

View Source

Specs

update_with_media(String.t(), String.t(), Keyword.t()) ::
  ExTwitter.Model.Tweet.t()

Specs

upload_media(String.t(), String.t()) :: integer()
Link to this callback

upload_media(t, t, integer)

View Source

Specs

upload_media(String.t(), String.t(), integer()) :: integer()

Specs

Specs

Specs

user_lookup(String.t() | integer() | Keyword.t()) :: [ExTwitter.Model.User.t()]

Specs

user_lookup([String.t() | integer()] | String.t() | integer(), Keyword.t()) :: [
  ExTwitter.Model.User.t()
]
Link to this callback

user_profile_banner(arg1)

View Source

Specs

user_profile_banner(String.t() | integer()) :: ExTwitter.Model.ProfileBanner.t()

Specs

user_search(String.t()) :: [ExTwitter.Model.User.t()]

Specs

user_search(String.t(), Keyword.t()) :: [ExTwitter.Model.User.t()]

Specs

user_timeline() :: [ExTwitter.Model.Tweet.t()]

Specs

user_timeline(Keyword.t()) :: [ExTwitter.Model.Tweet.t()]

Specs

verify_credentials() :: ExTwitter.Model.User.t()

Specs

verify_credentials(Keyword.t()) :: ExTwitter.Model.User.t()