Safe Haskell | None |
---|
- class Parameters a where
- params :: Lens' a 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 StatusId)
- 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 => HasLocaleParam 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
- mkUserParam :: UserParam -> SimpleQuery
- mkUserListParam :: UserListParam -> SimpleQuery
- mkListParam :: ListParam -> SimpleQuery
Documentation
class Parameters a whereSource
params :: Lens' a SimpleQuerySource
Parameters (APIRequest apiName responseType) |
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
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 => HasLocaleParam 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 -> SimpleQuerySource
converts UserParam
to SimpleQuery
.
>>>
mkUserParam $ UserIdParam 123456
[("user_id","123456")]>>>
mkUserParam $ ScreenNameParam "thimura"
[("screen_name","thimura")]
mkUserListParam :: UserListParam -> SimpleQuerySource
converts UserListParam
to SimpleQuery
.
>>>
mkUserListParam $ UserIdListParam [123456]
[("user_id","123456")]>>>
mkUserListParam $ UserIdListParam [123456, 654321]
[("user_id","123456,654321")]>>>
mkUserListParam $ ScreenNameListParam ["thimura", "NikaidouShinku"]
[("screen_name","thimura,NikaidouShinku")]
mkListParam :: ListParam -> SimpleQuerySource
converts ListParam
to SimpleQuery
.
>>>
mkListParam $ ListIdParam 123123
[("list_id","123123")]>>>
mkListParam $ ListNameParam "thimura/haskell"
[("slug","haskell"),("owner_screen_name","thimura")]