Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data StatusesMentionsTimeline
- mentionsTimeline :: APIRequest StatusesMentionsTimeline [Status]
- data StatusesUserTimeline
- userTimeline :: UserParam -> APIRequest StatusesUserTimeline [Status]
- data StatusesHomeTimeline
- homeTimeline :: APIRequest StatusesHomeTimeline [Status]
- data StatusesRetweetsOfMe
- retweetsOfMe :: APIRequest StatusesRetweetsOfMe [Status]
- data StatusesRetweetsId
- retweetsId :: StatusId -> APIRequest StatusesRetweetsId [RetweetedStatus]
- data StatusesShowId
- showId :: StatusId -> APIRequest StatusesShowId Status
- data StatusesDestroyId
- destroyId :: StatusId -> APIRequest StatusesDestroyId Status
- data StatusesUpdate
- update :: Text -> APIRequest StatusesUpdate Status
- data StatusesRetweetId
- retweetId :: StatusId -> APIRequest StatusesRetweetId RetweetedStatus
- data MediaData
- data StatusesUpdateWithMedia
- updateWithMedia :: Text -> MediaData -> APIRequest StatusesUpdateWithMedia Status
- data StatusesLookup
- lookup :: [StatusId] -> APIRequest StatusesLookup [Status]
Timelines
data StatusesMentionsTimeline Source #
Instances
HasCountParam (APIRequest StatusesMentionsTimeline a) Source # | |
Defined in Web.Twitter.Conduit.Status count :: Lens' (APIRequest StatusesMentionsTimeline a) (Maybe Integer) Source # | |
HasSinceIdParam (APIRequest StatusesMentionsTimeline a) Source # | |
Defined in Web.Twitter.Conduit.Status | |
HasMaxIdParam (APIRequest StatusesMentionsTimeline a) Source # | |
Defined in Web.Twitter.Conduit.Status maxId :: Lens' (APIRequest StatusesMentionsTimeline a) (Maybe Integer) Source # | |
HasTrimUserParam (APIRequest StatusesMentionsTimeline a) Source # | |
Defined in Web.Twitter.Conduit.Status trimUser :: Lens' (APIRequest StatusesMentionsTimeline a) (Maybe Bool) Source # | |
HasContributorDetailsParam (APIRequest StatusesMentionsTimeline a) Source # | |
Defined in Web.Twitter.Conduit.Status | |
HasIncludeEntitiesParam (APIRequest StatusesMentionsTimeline a) Source # | |
Defined in Web.Twitter.Conduit.Status |
mentionsTimeline :: APIRequest StatusesMentionsTimeline [Status] Source #
Returns query data asks the most recent mentions for the authenticating user.
You can perform a query using call
:
res <-call
mentionsTimeline
>>>
mentionsTimeline
APIRequest "GET" "https://api.twitter.com/1.1/statuses/mentions_timeline.json" []
data StatusesUserTimeline Source #
Instances
userTimeline :: UserParam -> APIRequest StatusesUserTimeline [Status] Source #
Returns query data asks a collection of the most recent Tweets posted by the user indicated by the screen_name or user_id parameters.
You can perform a search query using call
:
res <-call
$userTimeline
(ScreenNameParam
"thimura")
>>>
userTimeline (ScreenNameParam "thimura")
APIRequest "GET" "https://api.twitter.com/1.1/statuses/user_timeline.json" [("screen_name","thimura")]>>>
userTimeline (ScreenNameParam "thimura") & includeRts ?~ True & count ?~ 200
APIRequest "GET" "https://api.twitter.com/1.1/statuses/user_timeline.json" [("count","200"),("include_rts","true"),("screen_name","thimura")]
data StatusesHomeTimeline Source #
Instances
homeTimeline :: APIRequest StatusesHomeTimeline [Status] Source #
Returns query data asks a collection of the most recentTweets and retweets posted by the authenticating user and the users they follow.
You can perform a search query using call
:
res <-call
homeTimeline
>>>
homeTimeline
APIRequest "GET" "https://api.twitter.com/1.1/statuses/home_timeline.json" []>>>
homeTimeline & count ?~ 200
APIRequest "GET" "https://api.twitter.com/1.1/statuses/home_timeline.json" [("count","200")]
data StatusesRetweetsOfMe Source #
Instances
HasCountParam (APIRequest StatusesRetweetsOfMe a) Source # | |
Defined in Web.Twitter.Conduit.Status count :: Lens' (APIRequest StatusesRetweetsOfMe a) (Maybe Integer) Source # | |
HasSinceIdParam (APIRequest StatusesRetweetsOfMe a) Source # | |
Defined in Web.Twitter.Conduit.Status sinceId :: Lens' (APIRequest StatusesRetweetsOfMe a) (Maybe Integer) Source # | |
HasMaxIdParam (APIRequest StatusesRetweetsOfMe a) Source # | |
Defined in Web.Twitter.Conduit.Status maxId :: Lens' (APIRequest StatusesRetweetsOfMe a) (Maybe Integer) Source # | |
HasTrimUserParam (APIRequest StatusesRetweetsOfMe a) Source # | |
Defined in Web.Twitter.Conduit.Status trimUser :: Lens' (APIRequest StatusesRetweetsOfMe a) (Maybe Bool) Source # | |
HasIncludeEntitiesParam (APIRequest StatusesRetweetsOfMe a) Source # | |
Defined in Web.Twitter.Conduit.Status | |
HasIncludeUserEntitiesParam (APIRequest StatusesRetweetsOfMe a) Source # | |
Defined in Web.Twitter.Conduit.Status |
retweetsOfMe :: APIRequest StatusesRetweetsOfMe [Status] Source #
Returns query data asks the most recent tweets authored by the authenticating user that have been retweeted by others.
You can perform a search query using call
:
res <-call
retweetsOfMe
>>>
retweetsOfMe
APIRequest "GET" "https://api.twitter.com/1.1/statuses/retweets_of_me.json" []>>>
retweetsOfMe & count ?~ 100
APIRequest "GET" "https://api.twitter.com/1.1/statuses/retweets_of_me.json" [("count","100")]
Tweets
data StatusesRetweetsId Source #
Instances
HasCountParam (APIRequest StatusesRetweetsId a) Source # | |
Defined in Web.Twitter.Conduit.Status count :: Lens' (APIRequest StatusesRetweetsId a) (Maybe Integer) Source # | |
HasTrimUserParam (APIRequest StatusesRetweetsId a) Source # | |
Defined in Web.Twitter.Conduit.Status trimUser :: Lens' (APIRequest StatusesRetweetsId a) (Maybe Bool) Source # |
retweetsId :: StatusId -> APIRequest StatusesRetweetsId [RetweetedStatus] Source #
Returns query data that asks for the most recent retweets of the specified tweet
You can perform a search query using call
:
res <-call
twInfo mgr$
retweetsId
1234567890
>>>
retweetsId 1234567890
APIRequest "GET" "https://api.twitter.com/1.1/statuses/retweets/1234567890.json" []>>>
retweetsId 1234567890 & count ?~ 100
APIRequest "GET" "https://api.twitter.com/1.1/statuses/retweets/1234567890.json" [("count","100")]
data StatusesShowId Source #
Instances
HasTrimUserParam (APIRequest StatusesShowId a) Source # | |
Defined in Web.Twitter.Conduit.Status trimUser :: Lens' (APIRequest StatusesShowId a) (Maybe Bool) Source # | |
HasIncludeEntitiesParam (APIRequest StatusesShowId a) Source # | |
Defined in Web.Twitter.Conduit.Status includeEntities :: Lens' (APIRequest StatusesShowId a) (Maybe Bool) Source # | |
HasIncludeMyRetweetParam (APIRequest StatusesShowId a) Source # | |
Defined in Web.Twitter.Conduit.Status includeMyRetweet :: Lens' (APIRequest StatusesShowId a) (Maybe Bool) Source # | |
HasIncludeExtAltTextParam (APIRequest StatusesShowId a) Source # | |
Defined in Web.Twitter.Conduit.Status includeExtAltText :: Lens' (APIRequest StatusesShowId a) (Maybe Bool) Source # |
showId :: StatusId -> APIRequest StatusesShowId Status Source #
Returns query data asks a single Tweet, specified by the id parameter.
You can perform a search query using call
:
res <-call
twInfo mgr$
showId
1234567890
>>>
showId 1234567890
APIRequest "GET" "https://api.twitter.com/1.1/statuses/show/1234567890.json" []>>>
showId 1234567890 & includeMyRetweet ?~ True
APIRequest "GET" "https://api.twitter.com/1.1/statuses/show/1234567890.json" [("include_my_retweet","true")]
data StatusesDestroyId Source #
Instances
HasTrimUserParam (APIRequest StatusesDestroyId a) Source # | |
Defined in Web.Twitter.Conduit.Status trimUser :: Lens' (APIRequest StatusesDestroyId a) (Maybe Bool) Source # |
data StatusesUpdate Source #
Instances
HasTrimUserParam (APIRequest StatusesUpdate a) Source # | |
Defined in Web.Twitter.Conduit.Status trimUser :: Lens' (APIRequest StatusesUpdate a) (Maybe Bool) Source # | |
HasInReplyToStatusIdParam (APIRequest StatusesUpdate a) Source # | |
Defined in Web.Twitter.Conduit.Status | |
HasDisplayCoordinatesParam (APIRequest StatusesUpdate a) Source # | |
Defined in Web.Twitter.Conduit.Status displayCoordinates :: Lens' (APIRequest StatusesUpdate a) (Maybe Bool) Source # | |
HasMediaIdsParam (APIRequest StatusesUpdate a) Source # | |
Defined in Web.Twitter.Conduit.Status mediaIds :: Lens' (APIRequest StatusesUpdate a) (Maybe [Integer]) Source # |
update :: Text -> APIRequest StatusesUpdate Status Source #
Returns post data which updates the authenticating user's current status.
To upload an image to accompany the tweet, use updateWithMedia
.
You can perform a search query using call
:
res <-call
twInfo mgr$
update
"Hello World"
>>>
update "Hello World"
APIRequest "POST" "https://api.twitter.com/1.1/statuses/update.json" [("status","Hello World")]>>>
update "Hello World" & inReplyToStatusId ?~ 1234567890
APIRequest "POST" "https://api.twitter.com/1.1/statuses/update.json" [("in_reply_to_status_id","1234567890"),("status","Hello World")]
data StatusesRetweetId Source #
Instances
HasTrimUserParam (APIRequest StatusesRetweetId a) Source # | |
Defined in Web.Twitter.Conduit.Status trimUser :: Lens' (APIRequest StatusesRetweetId a) (Maybe Bool) Source # |
data StatusesUpdateWithMedia Source #
Instances
updateWithMedia :: Text -> MediaData -> APIRequest StatusesUpdateWithMedia Status Source #
Returns post data which updates the authenticating user's current status and attaches media for upload.
You can perform a search query using call
:
res <-call
twInfo mgr$
updateWithMedia
"Hello World" (MediaFromFile
"homethimura/test.jpeg")
>>>
updateWithMedia "Hello World" (MediaFromFile "/home/fuga/test.jpeg")
APIRequestMultipart "POST" "https://api.twitter.com/1.1/statuses/update_with_media.json" [("status","Hello World")]
data StatusesLookup Source #
Instances
HasTrimUserParam (APIRequest StatusesLookup a) Source # | |
Defined in Web.Twitter.Conduit.Status trimUser :: Lens' (APIRequest StatusesLookup a) (Maybe Bool) Source # | |
HasIncludeEntitiesParam (APIRequest StatusesLookup a) Source # | |
Defined in Web.Twitter.Conduit.Status includeEntities :: Lens' (APIRequest StatusesLookup a) (Maybe Bool) Source # | |
HasMapParam (APIRequest StatusesLookup a) Source # | |
Defined in Web.Twitter.Conduit.Status map :: Lens' (APIRequest StatusesLookup a) (Maybe Bool) Source # |
lookup :: [StatusId] -> APIRequest StatusesLookup [Status] Source #
Returns fully-hydrated tweet objects for up to 100 tweets per request, as specified by comma-separated values passed to the id parameter.
You can perform a request using call
:
res <-call
twInfo mgr$
lookup
[20, 432656548536401920]
>>>
lookup [10]
APIRequest "GET" "https://api.twitter.com/1.1/statuses/lookup.json" [("id","10")]>>>
lookup [10, 432656548536401920]
APIRequest "GET" "https://api.twitter.com/1.1/statuses/lookup.json" [("id","10,432656548536401920")]>>>
lookup [10, 432656548536401920] & includeEntities ?~ True
APIRequest "GET" "https://api.twitter.com/1.1/statuses/lookup.json" [("include_entities","true"),("id","10,432656548536401920")]