Safe Haskell | None |
---|
- class Parameters a where
- data PV
- = PVInteger { }
- | PVBool { }
- | PVString {
- unPVString :: Text
- | PVIntegerArray {
- unPVIntegerArray :: [Integer]
- | PVStringArray {
- unPVStringArray :: [Text]
- | PVDay { }
- type APIQuery = [APIQueryItem]
- type APIQueryItem = (ByteString, PV)
- makeSimpleQuery :: APIQuery -> SimpleQuery
- class Parameters a => HasSinceIdParam a where
- class Parameters a => HasCountParam a where
- class Parameters a => HasMaxIdParam a where
- class Parameters a => HasPageParam a where
- class Parameters a => HasCursorParam a where
- class Parameters a => HasTrimUserParam a where
- class Parameters a => HasExcludeRepliesParam a where
- excludeReplies :: Lens' a (Maybe Bool)
- class Parameters a => HasContributorDetailsParam a where
- contributorDetails :: Lens' a (Maybe Bool)
- class Parameters a => HasIncludeEntitiesParam a where
- includeEntities :: Lens' a (Maybe Bool)
- class Parameters a => HasIncludeUserEntitiesParam a where
- includeUserEntities :: Lens' a (Maybe Bool)
- class Parameters a => HasIncludeRtsParam a where
- includeRts :: Lens' a (Maybe Bool)
- class Parameters a => HasIncludeMyRetweetParam a where
- includeMyRetweet :: Lens' a (Maybe Bool)
- class Parameters a => HasInReplyToStatusIdParam a where
- inReplyToStatusId :: Lens' a (Maybe Integer)
- class Parameters a => HasDisplayCoordinatesParam a where
- displayCoordinates :: Lens' a (Maybe Bool)
- class Parameters a => HasPossiblySensitiveParam a where
- possiblySensitive :: Lens' a (Maybe Bool)
- class Parameters a => HasLangParam a where
- class Parameters a => HasLanguageParam a where
- class Parameters a => HasLocaleParam a where
- class Parameters a => HasFilterLevelParam a where
- filterLevel :: Lens' a (Maybe Text)
- class Parameters a => HasStallWarningsParam a where
- stallWarnings :: Lens' a (Maybe Bool)
- class Parameters a => HasRepliesParam a where
- class Parameters a => HasUntilParam a where
- class Parameters a => HasSkipStatusParam a where
- skipStatus :: Lens' a (Maybe Bool)
- class Parameters a => HasFollowParam a where
- class Parameters a => HasMapParam a where
- class Parameters a => HasMediaIdsParam a where
- data UserParam
- data UserListParam
- data ListParam
- data MediaData
- mkUserParam :: UserParam -> APIQuery
- mkUserListParam :: UserListParam -> APIQuery
- mkListParam :: ListParam -> APIQuery
Documentation
class Parameters a whereSource
Parameters (APIRequest apiName responseType) |
type APIQuery = [APIQueryItem]Source
type APIQueryItem = (ByteString, PV)Source
class Parameters a => HasSinceIdParam a whereSource
class Parameters a => HasCountParam a whereSource
class Parameters a => HasMaxIdParam a whereSource
class Parameters a => HasPageParam a whereSource
class Parameters a => HasCursorParam a whereSource
class Parameters a => HasTrimUserParam a whereSource
class Parameters a => HasExcludeRepliesParam a whereSource
excludeReplies :: Lens' a (Maybe Bool)Source
class Parameters a => HasContributorDetailsParam a whereSource
contributorDetails :: Lens' a (Maybe Bool)Source
class Parameters a => HasIncludeEntitiesParam a whereSource
includeEntities :: Lens' a (Maybe Bool)Source
class Parameters a => HasIncludeUserEntitiesParam a whereSource
includeUserEntities :: Lens' a (Maybe Bool)Source
class Parameters a => HasIncludeRtsParam a whereSource
includeRts :: Lens' a (Maybe Bool)Source
class Parameters a => HasIncludeMyRetweetParam a whereSource
includeMyRetweet :: Lens' a (Maybe Bool)Source
class Parameters a => HasInReplyToStatusIdParam a whereSource
inReplyToStatusId :: Lens' a (Maybe Integer)Source
class Parameters a => HasDisplayCoordinatesParam a whereSource
displayCoordinates :: Lens' a (Maybe Bool)Source
class Parameters a => HasPossiblySensitiveParam a whereSource
possiblySensitive :: Lens' a (Maybe Bool)Source
class Parameters a => HasLangParam a whereSource
class Parameters a => HasLanguageParam a whereSource
class Parameters a => HasLocaleParam a whereSource
class Parameters a => HasFilterLevelParam a whereSource
filterLevel :: Lens' a (Maybe Text)Source
class Parameters a => HasStallWarningsParam a whereSource
stallWarnings :: Lens' a (Maybe Bool)Source
class Parameters a => HasRepliesParam a whereSource
class Parameters a => HasUntilParam a whereSource
class Parameters a => HasSkipStatusParam a whereSource
skipStatus :: Lens' a (Maybe Bool)Source
class Parameters a => HasFollowParam a whereSource
class Parameters a => HasMapParam a whereSource
class Parameters a => HasMediaIdsParam a whereSource
data UserListParam Source
mkUserParam :: UserParam -> APIQuerySource
converts UserParam
to SimpleQuery
.
>>>
makeSimpleQuery . mkUserParam $ UserIdParam 123456
[("user_id","123456")]>>>
makeSimpleQuery . mkUserParam $ ScreenNameParam "thimura"
[("screen_name","thimura")]
mkUserListParam :: UserListParam -> APIQuerySource
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 -> APIQuerySource
converts ListParam
to SimpleQuery
.
>>>
makeSimpleQuery . mkListParam $ ListIdParam 123123
[("list_id","123123")]>>>
makeSimpleQuery . mkListParam $ ListNameParam "thimura/haskell"
[("slug","haskell"),("owner_screen_name","thimura")]