Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
- class Parameters a => HasContributorDetailsParam a where
- class Parameters a => HasIncludeEntitiesParam a where
- class Parameters a => HasIncludeEmailParam a where
- class Parameters a => HasIncludeExtAltTextParam a where
- class Parameters a => HasIncludeUserEntitiesParam a where
- class Parameters a => HasIncludeRtsParam a where
- class Parameters a => HasIncludeMyRetweetParam a where
- class Parameters a => HasInReplyToStatusIdParam a where
- class Parameters a => HasDisplayCoordinatesParam a where
- class Parameters a => HasPossiblySensitiveParam a where
- class Parameters a => HasLangParam a where
- class Parameters a => HasLanguageParam a where
- class Parameters a => HasLocaleParam a where
- class Parameters a => HasFilterLevelParam a where
- class Parameters a => HasStallWarningsParam a where
- class Parameters a => HasRepliesParam a where
- class Parameters a => HasUntilParam a where
- class Parameters a => HasSkipStatusParam a where
- class Parameters a => HasFollowParam a where
- class Parameters a => HasMapParam a where
- class Parameters a => HasMediaIdsParam a where
- class Parameters a => HasDescriptionParam a where
- class Parameters a => HasNameParam a where
- class Parameters a => HasProfileLinkColorParam a where
- class Parameters a => HasLocationParam a where
- class Parameters a => HasUrlParam a where
- class Parameters a => HasFullTextParam a where
- class Parameters a => HasWithParam a where
- data UserParam
- data UserListParam
- data ListParam
- data MediaData
- mkUserParam :: UserParam -> APIQuery
- mkUserListParam :: UserListParam -> APIQuery
- mkListParam :: ListParam -> APIQuery
Documentation
class Parameters a where Source #
Parameters (APIRequest apiName responseType) Source # | |
type APIQuery = [APIQueryItem] Source #
type APIQueryItem = (ByteString, PV) Source #
class Parameters a => HasSinceIdParam a where Source #
class Parameters a => HasCountParam a where Source #
class Parameters a => HasMaxIdParam a where Source #
class Parameters a => HasPageParam a where Source #
class Parameters a => HasCursorParam a where Source #
class Parameters a => HasTrimUserParam a where Source #
class Parameters a => HasExcludeRepliesParam a where Source #
class Parameters a => HasContributorDetailsParam a where Source #
class Parameters a => HasIncludeEntitiesParam a where Source #
class Parameters a => HasIncludeEmailParam a where Source #
class Parameters a => HasIncludeExtAltTextParam a where Source #
class Parameters a => HasIncludeUserEntitiesParam a where Source #
class Parameters a => HasIncludeRtsParam a where Source #
class Parameters a => HasIncludeMyRetweetParam a where Source #
class Parameters a => HasInReplyToStatusIdParam a where Source #
class Parameters a => HasDisplayCoordinatesParam a where Source #
class Parameters a => HasPossiblySensitiveParam a where Source #
class Parameters a => HasLangParam a where Source #
class Parameters a => HasLanguageParam a where Source #
class Parameters a => HasLocaleParam a where Source #
class Parameters a => HasFilterLevelParam a where Source #
class Parameters a => HasStallWarningsParam a where Source #
class Parameters a => HasRepliesParam a where Source #
class Parameters a => HasUntilParam a where Source #
class Parameters a => HasSkipStatusParam a where Source #
class Parameters a => HasFollowParam a where Source #
class Parameters a => HasMapParam a where Source #
class Parameters a => HasMediaIdsParam a where Source #
class Parameters a => HasDescriptionParam a where Source #
class Parameters a => HasNameParam a where Source #
class Parameters a => HasProfileLinkColorParam a where Source #
class Parameters a => HasLocationParam a where Source #
class Parameters a => HasUrlParam a where Source #
class Parameters a => HasFullTextParam a where Source #
class Parameters a => HasWithParam a where Source #
data UserListParam 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")]