Packages
extwitter
0.1.0
0.14.0
0.13.1
0.13.0
0.12.5
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.11.0
0.10.0
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.3
0.7.2
0.7.1
0.7.0
0.6.3
0.6.2
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Twitter client library for Elixir.
Current section
Files
Jump to
Current section
Files
lib/extwitter.ex
defmodule ExTwitter do
@moduledoc """
Provides user interface for the Twitter API.
"""
use Application.Behaviour
@doc """
GET statuses/user_timeline
https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
"""
defdelegate user_timeline, to: ExTwitter.API.Timelines
defdelegate user_timeline(options), to: ExTwitter.API.Timelines
@doc """
GET statuses/mentions_timeline
https://dev.twitter.com/docs/api/1.1/get/statuses/mentions_timeline
"""
defdelegate mentions_timeline, to: ExTwitter.API.Timelines
defdelegate mentions_timeline(options), to: ExTwitter.API.Timelines
@doc """
POST statuses/show/:id
https://dev.twitter.com/docs/api/1.1/get/statuses/show/%3Aid
"""
defdelegate show(id), to: ExTwitter.API.Tweets
defdelegate show(id, options), to: ExTwitter.API.Tweets
@doc """
POST statuses/destroy/:id
https://dev.twitter.com/docs/api/1.1/post/statuses/destroy/%3Aid
"""
defdelegate destroy_status(id), to: ExTwitter.API.Tweets
defdelegate destroy_status(id, options), to: ExTwitter.API.Tweets
@doc """
POST statuses/update
https://dev.twitter.com/docs/api/1.1/post/statuses/update
"""
defdelegate update(status), to: ExTwitter.API.Tweets
defdelegate update(status, options), to: ExTwitter.API.Tweets
@doc """
GET statuses/retweeters/ids
https://dev.twitter.com/docs/api/1.1/get/statuses/retweeters/ids
"""
defdelegate retweeter_ids(id), to: ExTwitter.API.Tweets
defdelegate retweeter_ids(id, options), to: ExTwitter.API.Tweets
@doc """
GET search/tweets
https://dev.twitter.com/docs/api/1.1/get/search/tweets
"""
defdelegate search(query), to: ExTwitter.API.Search
defdelegate search(query, options), to: ExTwitter.API.Search
@doc """
GET statuses/sample
https://dev.twitter.com/docs/api/1.1/get/statuses/sample
"""
defdelegate stream_sample, to: ExTwitter.API.Streaming
defdelegate stream_sample(options), to: ExTwitter.API.Streaming
@doc """
POST statuses/filter
https://dev.twitter.com/docs/api/1.1/post/statuses/filter
"""
defdelegate stream_filter(options), to: ExTwitter.API.Streaming
@doc """
GET geo/search
https://dev.twitter.com/docs/api/1.1/get/geo/search
"""
defdelegate geo_search(query), to: ExTwitter.API.PlacesAndGeo
defdelegate geo_search(query, options), to: ExTwitter.API.PlacesAndGeo
@doc """
GET geo/reverse_geocode
https://dev.twitter.com/docs/api/1.1/get/geo/reverse_geocode
"""
defdelegate reverse_geocode(lat, long), to: ExTwitter.API.PlacesAndGeo
defdelegate reverse_geocode(lat, long, options), to: ExTwitter.API.PlacesAndGeo
@doc """
GET trends/place
https://api.twitter.com/1.1/trends/place.json
"""
defdelegate trends(id), to: ExTwitter.API.Trends
defdelegate trends(id, options), to: ExTwitter.API.Trends
@doc """
GET followers/list
https://api.twitter.com/1.1/followers/list.json
"""
defdelegate followers(screen_name), to: ExTwitter.API.FriendsAndFollowers
defdelegate followers(screen_name, options), to: ExTwitter.API.FriendsAndFollowers
@doc """
GET friends/list
https://api.twitter.com/1.1/friends/list.json
"""
defdelegate friends(screen_name), to: ExTwitter.API.FriendsAndFollowers
defdelegate friends(screen_name, options), to: ExTwitter.API.FriendsAndFollowers
@doc """
GET users/show
https://dev.twitter.com/docs/api/1.1/get/users/show
"""
defdelegate user(user_id, screen_name), to: ExTwitter.API.Users
defdelegate user(user_id, screen_name, options), to: ExTwitter.API.Users
@doc """
GET users/search
https://dev.twitter.com/docs/api/1.1/get/users/search
"""
defdelegate user_search(query), to: ExTwitter.API.Users
defdelegate user_search(query, options), to: ExTwitter.API.Users
@doc """
GET favorites/list
https://dev.twitter.com/docs/api/1.1/get/favorites/list
"""
defdelegate favorites, to: ExTwitter.API.Favorites
defdelegate favorites(options), to: ExTwitter.API.Favorites
@doc """
GET lists/list
https://dev.twitter.com/docs/api/1.1/get/lists/list
"""
defdelegate lists(screen_name), to: ExTwitter.API.Lists
defdelegate lists(screen_name, options), to: ExTwitter.API.Lists
@doc """
GET lists/statuses
https://dev.twitter.com/docs/api/1.1/get/lists/statuses
"""
defdelegate list_timeline(options), to: ExTwitter.API.Lists
defdelegate list_timeline(list, owner), to: ExTwitter.API.Lists
defdelegate list_timeline(list, owner, options), to: ExTwitter.API.Lists
@doc """
GET lists/memberships
https://dev.twitter.com/docs/api/1.1/get/lists/memberships
"""
defdelegate list_memberships, to: ExTwitter.API.Lists
defdelegate list_memberships(options), to: ExTwitter.API.Lists
@doc """
GET lists/subscribers
https://dev.twitter.com/docs/api/1.1/get/lists/subscribers
"""
defdelegate list_subscribers(options), to: ExTwitter.API.Lists
defdelegate list_subscribers(list, owner), to: ExTwitter.API.Lists
defdelegate list_subscribers(list, owner, options), to: ExTwitter.API.Lists
@doc """
Provides OAuth configuration setting for accessing twitter server.
"""
defdelegate configure(oauth), to: ExTwitter.Config, as: :set
def start(_type, _args) do
ExTwitter.Config.start
ExTwitter.Supervisor.start_link
end
end