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

Safe HaskellNone
LanguageHaskell2010

Web.Twitter.Conduit.Parameters

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 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 #

class Parameters a => HasCountParam a where Source #

Instances

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 # 

class Parameters a => HasCursorParam a where Source #

Instances

class Parameters a => HasTrimUserParam a where Source #

class Parameters a => HasIncludeEntitiesParam a where Source #

Instances

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 # 

class Parameters a => HasWithParam a where Source #

Methods

with :: Lens' a (Maybe Text) Source #

mkUserParam :: UserParam -> APIQuery Source #

converts UserParam to SimpleQuery.

>>> makeSimpleQuery . mkUserParam $ UserIdParam 123456
[("user_id","123456")]
>>> makeSimpleQuery . mkUserParam $ ScreenNameParam "thimura"
[("screen_name","thimura")]

mkUserListParam :: UserListParam -> APIQuery Source #

converts UserListParam to SimpleQuery.

>>> makeSimpleQuery . mkUserListParam $ UserIdListParam [123456]
[("user_id","123456")]
>>> makeSimpleQuery . mkUserListParam $ UserIdListParam [123456, 654321]
[("user_id","123456,654321")]
>>> makeSimpleQuery . mkUserListParam $ ScreenNameListParam ["thimura", "NikaidouShinku"]
[("screen_name","thimura,NikaidouShinku")]

mkListParam :: ListParam -> APIQuery Source #

converts ListParam to SimpleQuery.

>>> makeSimpleQuery . mkListParam $ ListIdParam 123123
[("list_id","123123")]
>>> makeSimpleQuery . mkListParam $ ListNameParam "thimura/haskell"
[("slug","haskell"),("owner_screen_name","thimura")]