twitter-conduit-0.2.2.2: Twitter API package with conduit interface and Streaming API support.

Safe HaskellNone
LanguageHaskell2010

Web.Twitter.Conduit.Request

Synopsis

Documentation

class Parameters a where Source #

Minimal complete definition

params

Instances

Parameters (APIRequest apiName responseType) Source # 

Methods

params :: Lens' (APIRequest apiName responseType) APIQuery Source #

data APIRequest apiName responseType Source #

API request. You should use specific builder functions instead of building this directly.

For example, if there were a SampleApi type and a builder function which named sampleApiRequest. In addition, APIRequest SampleApi [SampleId] is a instance of both of HasCountParam and HasMaxIdParam.

data SampleApi
type SampleId = Integer
instance HasCountParam (APIRequest SampleApi [SampleId])
instance HasMaxIdParam (APIRequest SampleApi [SampleId])
sampleApiRequest :: APIRequest SampleApi [SampleId]
sampleApiRequest = APIRequestGet "https://api.twitter.com/sample/api.json" def

We can obtain request params from APIRequest SampleApi [SampleId] :

>>> sampleApiRequest ^. params
[]

And update request parameters.

>>> (sampleApiRequest & count ?~ 100 & maxId ?~ 1234567890) ^. params
[("max_id",PVInteger {unPVInteger = 1234567890}),("count",PVInteger {unPVInteger = 100})]
>>> (sampleApiRequest & count ?~ 100 & maxId ?~ 1234567890 & count .~ Nothing) ^. params
[("max_id",PVInteger {unPVInteger = 1234567890})]

Instances

Show (APIRequest apiName responseType) Source # 

Methods

showsPrec :: Int -> APIRequest apiName responseType -> ShowS #

show :: APIRequest apiName responseType -> String #

showList :: [APIRequest apiName responseType] -> ShowS #

HasCountParam (APIRequest StatusesMentionsTimeline a0) Source # 
HasCountParam (APIRequest StatusesUserTimeline a0) Source # 
HasCountParam (APIRequest StatusesHomeTimeline a0) Source # 
HasCountParam (APIRequest StatusesRetweetsOfMe a0) Source # 
HasCountParam (APIRequest StatusesRetweetsId a0) Source # 
HasCountParam (APIRequest SearchTweets a0) Source # 
HasCountParam (APIRequest DirectMessages a0) Source # 
HasCountParam (APIRequest DirectMessagesSent a0) Source # 
HasCountParam (APIRequest FriendsIds a0) Source # 
HasCountParam (APIRequest FollowersIds a0) Source # 
HasCountParam (APIRequest FriendsList a0) Source # 
HasCountParam (APIRequest FollowersList a0) Source # 
HasCountParam (APIRequest FavoritesList a0) Source # 
HasCountParam (APIRequest ListsStatuses a0) Source # 
HasCountParam (APIRequest ListsMemberships a0) Source # 
HasCountParam (APIRequest ListsSubscribers a0) Source # 
HasCountParam (APIRequest ListsSubscriptions a0) Source # 
HasCountParam (APIRequest ListsOwnerships a0) Source # 
HasCountParam (APIRequest ListsMembers a0) Source # 
HasSinceIdParam (APIRequest StatusesMentionsTimeline a0) Source # 
HasSinceIdParam (APIRequest StatusesUserTimeline a0) Source # 
HasSinceIdParam (APIRequest StatusesHomeTimeline a0) Source # 
HasSinceIdParam (APIRequest StatusesRetweetsOfMe a0) Source # 
HasSinceIdParam (APIRequest SearchTweets a0) Source # 
HasSinceIdParam (APIRequest DirectMessages a0) Source # 
HasSinceIdParam (APIRequest DirectMessagesSent a0) Source # 
HasSinceIdParam (APIRequest FavoritesList a0) Source # 
HasSinceIdParam (APIRequest ListsStatuses a0) Source # 
HasMaxIdParam (APIRequest StatusesMentionsTimeline a0) Source # 
HasMaxIdParam (APIRequest StatusesUserTimeline a0) Source # 
HasMaxIdParam (APIRequest StatusesHomeTimeline a0) Source # 
HasMaxIdParam (APIRequest StatusesRetweetsOfMe a0) Source # 
HasMaxIdParam (APIRequest SearchTweets a0) Source # 
HasMaxIdParam (APIRequest DirectMessages a0) Source # 
HasMaxIdParam (APIRequest DirectMessagesSent a0) Source # 
HasMaxIdParam (APIRequest FavoritesList a0) Source # 
HasMaxIdParam (APIRequest ListsStatuses a0) Source # 
HasPageParam (APIRequest DirectMessagesSent a0) Source # 
HasCursorParam (APIRequest FriendsIds a0) Source # 
HasCursorParam (APIRequest FollowersIds a0) Source # 
HasCursorParam (APIRequest FriendshipsIncoming a0) Source # 
HasCursorParam (APIRequest FriendshipsOutgoing a0) Source # 
HasCursorParam (APIRequest FriendsList a0) Source # 
HasCursorParam (APIRequest FollowersList a0) Source # 
HasCursorParam (APIRequest ListsMemberships a0) Source # 
HasCursorParam (APIRequest ListsSubscribers a0) Source # 
HasCursorParam (APIRequest ListsSubscriptions a0) Source # 
HasCursorParam (APIRequest ListsOwnerships a0) Source # 
HasCursorParam (APIRequest ListsMembers a0) Source # 
HasTrimUserParam (APIRequest StatusesMentionsTimeline a0) Source # 
HasTrimUserParam (APIRequest StatusesUserTimeline a0) Source # 
HasTrimUserParam (APIRequest StatusesHomeTimeline a0) Source # 
HasTrimUserParam (APIRequest StatusesRetweetsOfMe a0) Source # 
HasTrimUserParam (APIRequest StatusesRetweetsId a0) Source # 
HasTrimUserParam (APIRequest StatusesShowId a0) Source # 
HasTrimUserParam (APIRequest StatusesDestroyId a0) Source # 
HasTrimUserParam (APIRequest StatusesUpdate a0) Source # 
HasTrimUserParam (APIRequest StatusesRetweetId a0) Source # 
HasTrimUserParam (APIRequest StatusesLookup a0) Source # 
HasExcludeRepliesParam (APIRequest StatusesUserTimeline a0) Source # 
HasExcludeRepliesParam (APIRequest StatusesHomeTimeline a0) Source # 
HasContributorDetailsParam (APIRequest StatusesMentionsTimeline a0) Source # 
HasContributorDetailsParam (APIRequest StatusesUserTimeline a0) Source # 
HasContributorDetailsParam (APIRequest StatusesHomeTimeline a0) Source # 
HasIncludeEntitiesParam (APIRequest StatusesMentionsTimeline a0) Source # 
HasIncludeEntitiesParam (APIRequest StatusesHomeTimeline a0) Source # 
HasIncludeEntitiesParam (APIRequest StatusesRetweetsOfMe a0) Source # 
HasIncludeEntitiesParam (APIRequest StatusesShowId a0) Source # 
HasIncludeEntitiesParam (APIRequest StatusesLookup a0) Source # 
HasIncludeEntitiesParam (APIRequest SearchTweets a0) Source # 
HasIncludeEntitiesParam (APIRequest DirectMessages a0) Source # 
HasIncludeEntitiesParam (APIRequest DirectMessagesSent a0) Source # 
HasIncludeEntitiesParam (APIRequest DirectMessagesDestroy a0) Source # 
HasIncludeEntitiesParam (APIRequest AccountVerifyCredentials a0) Source # 
HasIncludeEntitiesParam (APIRequest AccountUpdateProfile a0) Source # 
HasIncludeEntitiesParam (APIRequest UsersLookup a0) Source # 
HasIncludeEntitiesParam (APIRequest UsersShow a0) Source # 
HasIncludeEntitiesParam (APIRequest FavoritesList a0) Source # 
HasIncludeEntitiesParam (APIRequest FavoritesCreate a0) Source # 
HasIncludeEntitiesParam (APIRequest FavoritesDestroy a0) Source # 
HasIncludeEntitiesParam (APIRequest ListsStatuses a0) Source # 
HasIncludeEmailParam (APIRequest AccountVerifyCredentials a0) Source # 
HasIncludeUserEntitiesParam (APIRequest StatusesRetweetsOfMe a0) Source # 
HasIncludeUserEntitiesParam (APIRequest FriendsList a0) Source # 
HasIncludeUserEntitiesParam (APIRequest FollowersList a0) Source # 
HasIncludeRtsParam (APIRequest StatusesUserTimeline a0) Source # 
HasIncludeRtsParam (APIRequest ListsStatuses a0) Source # 
HasIncludeMyRetweetParam (APIRequest StatusesShowId a0) Source # 
HasIncludeExtAltTextParam (APIRequest StatusesShowId a0) Source # 
HasInReplyToStatusIdParam (APIRequest StatusesUpdate a0) Source # 
HasInReplyToStatusIdParam (APIRequest StatusesUpdateWithMedia a0) Source # 
HasDisplayCoordinatesParam (APIRequest StatusesUpdate a0) Source # 
HasDisplayCoordinatesParam (APIRequest StatusesUpdateWithMedia a0) Source # 
HasPossiblySensitiveParam (APIRequest StatusesUpdateWithMedia a0) Source # 
HasLangParam (APIRequest SearchTweets a0) Source # 
HasLanguageParam (APIRequest Userstream a0) Source # 
HasLanguageParam (APIRequest StatusesFilter a0) Source # 
HasLocaleParam (APIRequest SearchTweets a0) Source # 
HasFilterLevelParam (APIRequest Userstream a0) Source # 
HasFilterLevelParam (APIRequest StatusesFilter a0) Source # 
HasStallWarningsParam (APIRequest Userstream a0) Source # 
HasStallWarningsParam (APIRequest StatusesFilter a0) Source # 
HasRepliesParam (APIRequest Userstream a0) Source # 
HasUntilParam (APIRequest SearchTweets a0) Source # 
HasSkipStatusParam (APIRequest DirectMessages a0) Source # 
HasSkipStatusParam (APIRequest DirectMessagesSent a0) Source # 
HasSkipStatusParam (APIRequest FriendsList a0) Source # 
HasSkipStatusParam (APIRequest FollowersList a0) Source # 
HasSkipStatusParam (APIRequest AccountVerifyCredentials a0) Source # 
HasSkipStatusParam (APIRequest AccountUpdateProfile a0) Source # 
HasSkipStatusParam (APIRequest ListsSubscribers a0) Source # 
HasSkipStatusParam (APIRequest ListsMembers a0) Source # 
HasFollowParam (APIRequest FriendshipsCreate a0) Source # 
HasMapParam (APIRequest StatusesLookup a0) Source # 
HasMediaIdsParam (APIRequest StatusesUpdate a0) Source # 
HasDescriptionParam (APIRequest AccountUpdateProfile a0) Source # 
HasNameParam (APIRequest AccountUpdateProfile a0) Source # 
HasProfileLinkColorParam (APIRequest AccountUpdateProfile a0) Source # 
HasLocationParam (APIRequest AccountUpdateProfile a0) Source # 
HasUrlParam (APIRequest AccountUpdateProfile a0) Source # 
HasFullTextParam (APIRequest DirectMessages a0) Source # 
HasFullTextParam (APIRequest DirectMessagesSent a0) Source # 
HasFullTextParam (APIRequest DirectMessagesShow a0) Source # 
Parameters (APIRequest apiName responseType) Source # 

Methods

params :: Lens' (APIRequest apiName responseType) APIQuery Source #

data PV Source #

Instances

Eq PV Source # 

Methods

(==) :: PV -> PV -> Bool #

(/=) :: PV -> PV -> Bool #

Show PV Source # 

Methods

showsPrec :: Int -> PV -> ShowS #

show :: PV -> String #

showList :: [PV] -> ShowS #