Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type ListMemberApi = (ReqBody '[JSON] ListMemberRequest :> Post '[JSON] ListMemberResponse) :<|> ((QueryParam "offset" Int :> Get '[JSON] ListMembersResponse) :<|> ((Capture "subscriber_hash" ListMemberId :> Get '[JSON] ListMemberResponse) :<|> ((Capture "subscriber_hash" ListMemberId :> (ReqBody '[JSON] ListMemberRequest :> Patch '[JSON] ListMemberResponse)) :<|> ((Capture "subscriber_hash" ListMemberId :> (ReqBody '[JSON] ListMemberRequest :> Put '[JSON] ListMemberResponse)) :<|> (Capture "subscriber_hash" ListMemberId :> Delete '[JSON] String)))))
- data ListMemberClient = ListMemberClient {
- addListMember :: ListMemberRequest -> ClientM ListMemberResponse
- getListMembers :: Maybe Int -> ClientM ListMembersResponse
- getListMember :: ListMemberId -> ClientM ListMemberResponse
- updateListMember :: ListMemberId -> ListMemberRequest -> ClientM ListMemberResponse
- addOrUpdateListMember :: ListMemberId -> ListMemberRequest -> ClientM ListMemberResponse
- deleteListMember :: ListMemberId -> ClientM String
- data ListMemberRequest = ListMemberRequest {
- listMemberEmailAddress :: Text
- listMemberMergeFields :: [(Text, Text)]
- listMemberStatus :: ListMemberStatus
- listMemberExtra :: [(Text, Value)]
- makeListMemberRequest :: Text -> ListMemberStatus -> ListMemberRequest
- data ListMemberResponse = ListMemberResponse {}
- data ListMembersResponse = ListMembersResponse {}
- getAllListMembers :: ListMemberClient -> ClientM [ListMemberResponse]
- type ListMemberId = Id
- data ListMemberStatus
Documentation
type ListMemberApi = (ReqBody '[JSON] ListMemberRequest :> Post '[JSON] ListMemberResponse) :<|> ((QueryParam "offset" Int :> Get '[JSON] ListMembersResponse) :<|> ((Capture "subscriber_hash" ListMemberId :> Get '[JSON] ListMemberResponse) :<|> ((Capture "subscriber_hash" ListMemberId :> (ReqBody '[JSON] ListMemberRequest :> Patch '[JSON] ListMemberResponse)) :<|> ((Capture "subscriber_hash" ListMemberId :> (ReqBody '[JSON] ListMemberRequest :> Put '[JSON] ListMemberResponse)) :<|> (Capture "subscriber_hash" ListMemberId :> Delete '[JSON] String))))) Source #
data ListMemberClient Source #
ListMemberClient | |
|
Generic ListMemberClient Source # | |
Generic ListMemberClient Source # | |
(~) * (Client * ListMemberApi) client => ClientLike client ListMemberClient Source # | |
type Rep ListMemberClient Source # | |
type Code ListMemberClient Source # | |
data ListMemberRequest Source #
ListMemberRequest | |
|
makeListMemberRequest Source #
:: Text | |
-> ListMemberStatus | |
-> ListMemberRequest |
Create a list member request.
data ListMembersResponse Source #
getAllListMembers :: ListMemberClient -> ClientM [ListMemberResponse] Source #
Since: 0.3.0
type ListMemberId = Id Source #