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

Safe Haskell | None
Language | Haskell2010

Web.Twitter.Conduit.Request

Synopsis

- class Parameters a where
- data APIRequest apiName responseType
  - = APIRequestGet {
    - _url :: String
    - _params :: APIQuery
    }
  - | APIRequestPost {
    - _url :: String
    - _params :: APIQuery
    }
  - | APIRequestPostMultipart {
    - _url :: String
    - _params :: APIQuery
    - _part :: [Part]
    }
- type APIQuery = [APIQueryItem]
- type APIQueryItem = (ByteString, PV)
- data PV
  - = PVInteger {
    - unPVInteger :: Integer
    }
  - | PVBool {
    - unPVBool :: Bool
    }
  - | PVString {
    - unPVString :: Text
    }
  - | PVIntegerArray {
    - unPVIntegerArray :: [Integer]
    }
  - | PVStringArray {
    - unPVStringArray :: [Text]
    }
  - | PVDay {
    - unPVDay :: Day
    }
- makeSimpleQuery :: APIQuery -> SimpleQuery
- paramValueBS :: PV -> ByteString

# Documentation

class Parameters a where Source #

Minimal complete definition

params

Methods

params :: Lens' a APIQuery Source #

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})]

Constructors

APIRequestGet |

Fields

- _url :: String
- _params :: APIQuery

APIRequestPost |

Fields

- _url :: String
- _params :: APIQuery

APIRequestPostMultipart |

Fields

- _url :: String
- _params :: APIQuery
- _part :: [Part]

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 # |
Methods count :: Lens' (APIRequest StatusesMentionsTimeline a0) (Maybe Integer) Source #
HasCountParam (APIRequest StatusesUserTimeline a0) Source # |
Methods count :: Lens' (APIRequest StatusesUserTimeline a0) (Maybe Integer) Source #
HasCountParam (APIRequest StatusesHomeTimeline a0) Source # |
Methods count :: Lens' (APIRequest StatusesHomeTimeline a0) (Maybe Integer) Source #
HasCountParam (APIRequest StatusesRetweetsOfMe a0) Source # |
Methods count :: Lens' (APIRequest StatusesRetweetsOfMe a0) (Maybe Integer) Source #
HasCountParam (APIRequest StatusesRetweetsId a0) Source # |
Methods count :: Lens' (APIRequest StatusesRetweetsId a0) (Maybe Integer) Source #
HasCountParam (APIRequest SearchTweets a0) Source # |
Methods count :: Lens' (APIRequest SearchTweets a0) (Maybe Integer) Source #
HasCountParam (APIRequest DirectMessages a0) Source # |
Methods count :: Lens' (APIRequest DirectMessages a0) (Maybe Integer) Source #
HasCountParam (APIRequest DirectMessagesSent a0) Source # |
Methods count :: Lens' (APIRequest DirectMessagesSent a0) (Maybe Integer) Source #
HasCountParam (APIRequest FriendsIds a0) Source # |
Methods count :: Lens' (APIRequest FriendsIds a0) (Maybe Integer) Source #
HasCountParam (APIRequest FollowersIds a0) Source # |
Methods count :: Lens' (APIRequest FollowersIds a0) (Maybe Integer) Source #
HasCountParam (APIRequest FriendsList a0) Source # |
Methods count :: Lens' (APIRequest FriendsList a0) (Maybe Integer) Source #
HasCountParam (APIRequest FollowersList a0) Source # |
Methods count :: Lens' (APIRequest FollowersList a0) (Maybe Integer) Source #
HasCountParam (APIRequest FavoritesList a0) Source # |
Methods count :: Lens' (APIRequest FavoritesList a0) (Maybe Integer) Source #
HasCountParam (APIRequest ListsStatuses a0) Source # |
Methods count :: Lens' (APIRequest ListsStatuses a0) (Maybe Integer) Source #
HasCountParam (APIRequest ListsMemberships a0) Source # |
Methods count :: Lens' (APIRequest ListsMemberships a0) (Maybe Integer) Source #
HasCountParam (APIRequest ListsSubscribers a0) Source # |
Methods count :: Lens' (APIRequest ListsSubscribers a0) (Maybe Integer) Source #
HasCountParam (APIRequest ListsSubscriptions a0) Source # |
Methods count :: Lens' (APIRequest ListsSubscriptions a0) (Maybe Integer) Source #
HasCountParam (APIRequest ListsOwnerships a0) Source # |
Methods count :: Lens' (APIRequest ListsOwnerships a0) (Maybe Integer) Source #
HasCountParam (APIRequest ListsMembers a0) Source # |
Methods count :: Lens' (APIRequest ListsMembers a0) (Maybe Integer) Source #
HasSinceIdParam (APIRequest StatusesMentionsTimeline a0) Source # |
Methods sinceId :: Lens' (APIRequest StatusesMentionsTimeline a0) (Maybe Integer) Source #
HasSinceIdParam (APIRequest StatusesUserTimeline a0) Source # |
Methods sinceId :: Lens' (APIRequest StatusesUserTimeline a0) (Maybe Integer) Source #
HasSinceIdParam (APIRequest StatusesHomeTimeline a0) Source # |
Methods sinceId :: Lens' (APIRequest StatusesHomeTimeline a0) (Maybe Integer) Source #
HasSinceIdParam (APIRequest StatusesRetweetsOfMe a0) Source # |
Methods sinceId :: Lens' (APIRequest StatusesRetweetsOfMe a0) (Maybe Integer) Source #
HasSinceIdParam (APIRequest SearchTweets a0) Source # |
Methods sinceId :: Lens' (APIRequest SearchTweets a0) (Maybe Integer) Source #
HasSinceIdParam (APIRequest DirectMessages a0) Source # |
Methods sinceId :: Lens' (APIRequest DirectMessages a0) (Maybe Integer) Source #
HasSinceIdParam (APIRequest DirectMessagesSent a0) Source # |
Methods sinceId :: Lens' (APIRequest DirectMessagesSent a0) (Maybe Integer) Source #
HasSinceIdParam (APIRequest FavoritesList a0) Source # |
Methods sinceId :: Lens' (APIRequest FavoritesList a0) (Maybe Integer) Source #
HasSinceIdParam (APIRequest ListsStatuses a0) Source # |
Methods sinceId :: Lens' (APIRequest ListsStatuses a0) (Maybe Integer) Source #
HasMaxIdParam (APIRequest StatusesMentionsTimeline a0) Source # |
Methods maxId :: Lens' (APIRequest StatusesMentionsTimeline a0) (Maybe Integer) Source #
HasMaxIdParam (APIRequest StatusesUserTimeline a0) Source # |
Methods maxId :: Lens' (APIRequest StatusesUserTimeline a0) (Maybe Integer) Source #
HasMaxIdParam (APIRequest StatusesHomeTimeline a0) Source # |
Methods maxId :: Lens' (APIRequest StatusesHomeTimeline a0) (Maybe Integer) Source #
HasMaxIdParam (APIRequest StatusesRetweetsOfMe a0) Source # |
Methods maxId :: Lens' (APIRequest StatusesRetweetsOfMe a0) (Maybe Integer) Source #
HasMaxIdParam (APIRequest SearchTweets a0) Source # |
Methods maxId :: Lens' (APIRequest SearchTweets a0) (Maybe Integer) Source #
HasMaxIdParam (APIRequest DirectMessages a0) Source # |
Methods maxId :: Lens' (APIRequest DirectMessages a0) (Maybe Integer) Source #
HasMaxIdParam (APIRequest DirectMessagesSent a0) Source # |
Methods maxId :: Lens' (APIRequest DirectMessagesSent a0) (Maybe Integer) Source #
HasMaxIdParam (APIRequest FavoritesList a0) Source # |
Methods maxId :: Lens' (APIRequest FavoritesList a0) (Maybe Integer) Source #
HasMaxIdParam (APIRequest ListsStatuses a0) Source # |
Methods maxId :: Lens' (APIRequest ListsStatuses a0) (Maybe Integer) Source #
HasPageParam (APIRequest DirectMessagesSent a0) Source # |
Methods page :: Lens' (APIRequest DirectMessagesSent a0) (Maybe Integer) Source #
HasCursorParam (APIRequest FriendsIds a0) Source # |
Methods cursor :: Lens' (APIRequest FriendsIds a0) (Maybe Integer) Source #
HasCursorParam (APIRequest FollowersIds a0) Source # |
Methods cursor :: Lens' (APIRequest FollowersIds a0) (Maybe Integer) Source #
HasCursorParam (APIRequest FriendshipsIncoming a0) Source # |
Methods cursor :: Lens' (APIRequest FriendshipsIncoming a0) (Maybe Integer) Source #
HasCursorParam (APIRequest FriendshipsOutgoing a0) Source # |
Methods cursor :: Lens' (APIRequest FriendshipsOutgoing a0) (Maybe Integer) Source #
HasCursorParam (APIRequest FriendsList a0) Source # |
Methods cursor :: Lens' (APIRequest FriendsList a0) (Maybe Integer) Source #
HasCursorParam (APIRequest FollowersList a0) Source # |
Methods cursor :: Lens' (APIRequest FollowersList a0) (Maybe Integer) Source #
HasCursorParam (APIRequest ListsMemberships a0) Source # |
Methods cursor :: Lens' (APIRequest ListsMemberships a0) (Maybe Integer) Source #
HasCursorParam (APIRequest ListsSubscribers a0) Source # |
Methods cursor :: Lens' (APIRequest ListsSubscribers a0) (Maybe Integer) Source #
HasCursorParam (APIRequest ListsSubscriptions a0) Source # |
Methods cursor :: Lens' (APIRequest ListsSubscriptions a0) (Maybe Integer) Source #
HasCursorParam (APIRequest ListsOwnerships a0) Source # |
Methods cursor :: Lens' (APIRequest ListsOwnerships a0) (Maybe Integer) Source #
HasCursorParam (APIRequest ListsMembers a0) Source # |
Methods cursor :: Lens' (APIRequest ListsMembers a0) (Maybe Integer) Source #
HasTrimUserParam (APIRequest StatusesMentionsTimeline a0) Source # |
Methods trimUser :: Lens' (APIRequest StatusesMentionsTimeline a0) (Maybe Bool) Source #
HasTrimUserParam (APIRequest StatusesUserTimeline a0) Source # |
Methods trimUser :: Lens' (APIRequest StatusesUserTimeline a0) (Maybe Bool) Source #
HasTrimUserParam (APIRequest StatusesHomeTimeline a0) Source # |
Methods trimUser :: Lens' (APIRequest StatusesHomeTimeline a0) (Maybe Bool) Source #
HasTrimUserParam (APIRequest StatusesRetweetsOfMe a0) Source # |
Methods trimUser :: Lens' (APIRequest StatusesRetweetsOfMe a0) (Maybe Bool) Source #
HasTrimUserParam (APIRequest StatusesRetweetsId a0) Source # |
Methods trimUser :: Lens' (APIRequest StatusesRetweetsId a0) (Maybe Bool) Source #
HasTrimUserParam (APIRequest StatusesShowId a0) Source # |
Methods trimUser :: Lens' (APIRequest StatusesShowId a0) (Maybe Bool) Source #
HasTrimUserParam (APIRequest StatusesDestroyId a0) Source # |
Methods trimUser :: Lens' (APIRequest StatusesDestroyId a0) (Maybe Bool) Source #
HasTrimUserParam (APIRequest StatusesUpdate a0) Source # |
Methods trimUser :: Lens' (APIRequest StatusesUpdate a0) (Maybe Bool) Source #
HasTrimUserParam (APIRequest StatusesRetweetId a0) Source # |
Methods trimUser :: Lens' (APIRequest StatusesRetweetId a0) (Maybe Bool) Source #
HasTrimUserParam (APIRequest StatusesLookup a0) Source # |
Methods trimUser :: Lens' (APIRequest StatusesLookup a0) (Maybe Bool) Source #
HasExcludeRepliesParam (APIRequest StatusesUserTimeline a0) Source # |
Methods excludeReplies :: Lens' (APIRequest StatusesUserTimeline a0) (Maybe Bool) Source #
HasExcludeRepliesParam (APIRequest StatusesHomeTimeline a0) Source # |
Methods excludeReplies :: Lens' (APIRequest StatusesHomeTimeline a0) (Maybe Bool) Source #
HasContributorDetailsParam (APIRequest StatusesMentionsTimeline a0) Source # |
Methods contributorDetails :: Lens' (APIRequest StatusesMentionsTimeline a0) (Maybe Bool) Source #
HasContributorDetailsParam (APIRequest StatusesUserTimeline a0) Source # |
Methods contributorDetails :: Lens' (APIRequest StatusesUserTimeline a0) (Maybe Bool) Source #
HasContributorDetailsParam (APIRequest StatusesHomeTimeline a0) Source # |
Methods contributorDetails :: Lens' (APIRequest StatusesHomeTimeline a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest StatusesMentionsTimeline a0) Source # |
Methods includeEntities :: Lens' (APIRequest StatusesMentionsTimeline a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest StatusesHomeTimeline a0) Source # |
Methods includeEntities :: Lens' (APIRequest StatusesHomeTimeline a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest StatusesRetweetsOfMe a0) Source # |
Methods includeEntities :: Lens' (APIRequest StatusesRetweetsOfMe a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest StatusesShowId a0) Source # |
Methods includeEntities :: Lens' (APIRequest StatusesShowId a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest StatusesLookup a0) Source # |
Methods includeEntities :: Lens' (APIRequest StatusesLookup a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest SearchTweets a0) Source # |
Methods includeEntities :: Lens' (APIRequest SearchTweets a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest DirectMessages a0) Source # |
Methods includeEntities :: Lens' (APIRequest DirectMessages a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest DirectMessagesSent a0) Source # |
Methods includeEntities :: Lens' (APIRequest DirectMessagesSent a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest DirectMessagesDestroy a0) Source # |
Methods includeEntities :: Lens' (APIRequest DirectMessagesDestroy a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest AccountVerifyCredentials a0) Source # |
Methods includeEntities :: Lens' (APIRequest AccountVerifyCredentials a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest AccountUpdateProfile a0) Source # |
Methods includeEntities :: Lens' (APIRequest AccountUpdateProfile a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest UsersLookup a0) Source # |
Methods includeEntities :: Lens' (APIRequest UsersLookup a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest UsersShow a0) Source # |
Methods includeEntities :: Lens' (APIRequest UsersShow a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest FavoritesList a0) Source # |
Methods includeEntities :: Lens' (APIRequest FavoritesList a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest FavoritesCreate a0) Source # |
Methods includeEntities :: Lens' (APIRequest FavoritesCreate a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest FavoritesDestroy a0) Source # |
Methods includeEntities :: Lens' (APIRequest FavoritesDestroy a0) (Maybe Bool) Source #
HasIncludeEntitiesParam (APIRequest ListsStatuses a0) Source # |
Methods includeEntities :: Lens' (APIRequest ListsStatuses a0) (Maybe Bool) Source #
HasIncludeEmailParam (APIRequest AccountVerifyCredentials a0) Source # |
Methods includeEmail :: Lens' (APIRequest AccountVerifyCredentials a0) (Maybe Bool) Source #
HasIncludeUserEntitiesParam (APIRequest StatusesRetweetsOfMe a0) Source # |
Methods includeUserEntities :: Lens' (APIRequest StatusesRetweetsOfMe a0) (Maybe Bool) Source #
HasIncludeUserEntitiesParam (APIRequest FriendsList a0) Source # |
Methods includeUserEntities :: Lens' (APIRequest FriendsList a0) (Maybe Bool) Source #
HasIncludeUserEntitiesParam (APIRequest FollowersList a0) Source # |
Methods includeUserEntities :: Lens' (APIRequest FollowersList a0) (Maybe Bool) Source #
HasIncludeRtsParam (APIRequest StatusesUserTimeline a0) Source # |
Methods includeRts :: Lens' (APIRequest StatusesUserTimeline a0) (Maybe Bool) Source #
HasIncludeRtsParam (APIRequest ListsStatuses a0) Source # |
Methods includeRts :: Lens' (APIRequest ListsStatuses a0) (Maybe Bool) Source #
HasIncludeMyRetweetParam (APIRequest StatusesShowId a0) Source # |
Methods includeMyRetweet :: Lens' (APIRequest StatusesShowId a0) (Maybe Bool) Source #
HasIncludeExtAltTextParam (APIRequest StatusesShowId a0) Source # |
Methods includeExtAltText :: Lens' (APIRequest StatusesShowId a0) (Maybe Bool) Source #
HasInReplyToStatusIdParam (APIRequest StatusesUpdate a0) Source # |
Methods inReplyToStatusId :: Lens' (APIRequest StatusesUpdate a0) (Maybe Integer) Source #
HasInReplyToStatusIdParam (APIRequest StatusesUpdateWithMedia a0) Source # |
Methods inReplyToStatusId :: Lens' (APIRequest StatusesUpdateWithMedia a0) (Maybe Integer) Source #
HasDisplayCoordinatesParam (APIRequest StatusesUpdate a0) Source # |
Methods displayCoordinates :: Lens' (APIRequest StatusesUpdate a0) (Maybe Bool) Source #
HasDisplayCoordinatesParam (APIRequest StatusesUpdateWithMedia a0) Source # |
Methods displayCoordinates :: Lens' (APIRequest StatusesUpdateWithMedia a0) (Maybe Bool) Source #
HasPossiblySensitiveParam (APIRequest StatusesUpdateWithMedia a0) Source # |
Methods possiblySensitive :: Lens' (APIRequest StatusesUpdateWithMedia a0) (Maybe Bool) Source #
HasLangParam (APIRequest SearchTweets a0) Source # |
Methods lang :: Lens' (APIRequest SearchTweets a0) (Maybe Text) Source #
HasLanguageParam (APIRequest Userstream a0) Source # |
Methods language :: Lens' (APIRequest Userstream a0) (Maybe Text) Source #
HasLanguageParam (APIRequest StatusesFilter a0) Source # |
Methods language :: Lens' (APIRequest StatusesFilter a0) (Maybe Text) Source #
HasLocaleParam (APIRequest SearchTweets a0) Source # |
Methods locale :: Lens' (APIRequest SearchTweets a0) (Maybe Text) Source #
HasFilterLevelParam (APIRequest Userstream a0) Source # |
Methods filterLevel :: Lens' (APIRequest Userstream a0) (Maybe Text) Source #
HasFilterLevelParam (APIRequest StatusesFilter a0) Source # |
Methods filterLevel :: Lens' (APIRequest StatusesFilter a0) (Maybe Text) Source #
HasStallWarningsParam (APIRequest Userstream a0) Source # |
Methods stallWarnings :: Lens' (APIRequest Userstream a0) (Maybe Bool) Source #
HasStallWarningsParam (APIRequest StatusesFilter a0) Source # |
Methods stallWarnings :: Lens' (APIRequest StatusesFilter a0) (Maybe Bool) Source #
HasRepliesParam (APIRequest Userstream a0) Source # |
Methods replies :: Lens' (APIRequest Userstream a0) (Maybe Text) Source #
HasUntilParam (APIRequest SearchTweets a0) Source # |
Methods until :: Lens' (APIRequest SearchTweets a0) (Maybe Day) Source #
HasSkipStatusParam (APIRequest DirectMessages a0) Source # |
Methods skipStatus :: Lens' (APIRequest DirectMessages a0) (Maybe Bool) Source #
HasSkipStatusParam (APIRequest DirectMessagesSent a0) Source # |
Methods skipStatus :: Lens' (APIRequest DirectMessagesSent a0) (Maybe Bool) Source #
HasSkipStatusParam (APIRequest FriendsList a0) Source # |
Methods skipStatus :: Lens' (APIRequest FriendsList a0) (Maybe Bool) Source #
HasSkipStatusParam (APIRequest FollowersList a0) Source # |
Methods skipStatus :: Lens' (APIRequest FollowersList a0) (Maybe Bool) Source #
HasSkipStatusParam (APIRequest AccountVerifyCredentials a0) Source # |
Methods skipStatus :: Lens' (APIRequest AccountVerifyCredentials a0) (Maybe Bool) Source #
HasSkipStatusParam (APIRequest AccountUpdateProfile a0) Source # |
Methods skipStatus :: Lens' (APIRequest AccountUpdateProfile a0) (Maybe Bool) Source #
HasSkipStatusParam (APIRequest ListsSubscribers a0) Source # |
Methods skipStatus :: Lens' (APIRequest ListsSubscribers a0) (Maybe Bool) Source #
HasSkipStatusParam (APIRequest ListsMembers a0) Source # |
Methods skipStatus :: Lens' (APIRequest ListsMembers a0) (Maybe Bool) Source #
HasFollowParam (APIRequest FriendshipsCreate a0) Source # |
Methods follow :: Lens' (APIRequest FriendshipsCreate a0) (Maybe Bool) Source #
HasMapParam (APIRequest StatusesLookup a0) Source # |
Methods map :: Lens' (APIRequest StatusesLookup a0) (Maybe Bool) Source #
HasMediaIdsParam (APIRequest StatusesUpdate a0) Source # |
Methods mediaIds :: Lens' (APIRequest StatusesUpdate a0) (Maybe [Integer]) Source #
HasDescriptionParam (APIRequest AccountUpdateProfile a0) Source # |
Methods description :: Lens' (APIRequest AccountUpdateProfile a0) (Maybe Text) Source #
HasNameParam (APIRequest AccountUpdateProfile a0) Source # |
Methods name :: Lens' (APIRequest AccountUpdateProfile a0) (Maybe Text) Source #
HasProfileLinkColorParam (APIRequest AccountUpdateProfile a0) Source # |
Methods profileLinkColor :: Lens' (APIRequest AccountUpdateProfile a0) (Maybe Text) Source #
HasLocationParam (APIRequest AccountUpdateProfile a0) Source # |
Methods location :: Lens' (APIRequest AccountUpdateProfile a0) (Maybe Text) Source #
HasUrlParam (APIRequest AccountUpdateProfile a0) Source # |
Methods url :: Lens' (APIRequest AccountUpdateProfile a0) (Maybe URIString) Source #
HasFullTextParam (APIRequest DirectMessages a0) Source # |
Methods fullText :: Lens' (APIRequest DirectMessages a0) (Maybe Bool) Source #
HasFullTextParam (APIRequest DirectMessagesSent a0) Source # |
Methods fullText :: Lens' (APIRequest DirectMessagesSent a0) (Maybe Bool) Source #
HasFullTextParam (APIRequest DirectMessagesShow a0) Source # |
Methods fullText :: Lens' (APIRequest DirectMessagesShow a0) (Maybe Bool) Source #
Parameters (APIRequest apiName responseType) Source # |
Methods params :: Lens' (APIRequest apiName responseType) APIQuery Source #

type APIQuery = [APIQueryItem] Source #

type APIQueryItem = (ByteString, PV) Source #

data PV Source #

Constructors

PVInteger |

Fields

- unPVInteger :: Integer

PVBool |

Fields

- unPVBool :: Bool

PVString |

Fields

- unPVString :: Text

PVIntegerArray |

Fields

- unPVIntegerArray :: [Integer]

PVStringArray |

Fields

- unPVStringArray :: [Text]

PVDay |

Fields

- unPVDay :: Day

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 #

makeSimpleQuery :: APIQuery -> SimpleQuery Source #

paramValueBS :: PV -> ByteString Source #