Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Subscription to change notifications through webhooks
see https://learn.microsoft.com/en-us/graph/webhooks#supported-resources for a list of resources that can produce change notifications
see https://learn.microsoft.com/en-us/graph/change-notifications-delivery-webhooks?tabs=http for protocol details
Synopsis
- data ChangeNotification a = ChangeNotification {
- cnChangeType :: ChangeType
- cnClientState :: Text
- cnId :: Text
- cnResource :: Text
- cnResourceData :: Maybe a
- cnSubscriptionId :: Text
- cnTenantId :: Text
- createSubscription :: FromJSON b => Subscription -> AccessToken -> Req b
- data Subscription = Subscription {}
- data LatestTLSVer
- data ChangeType
Documentation
data ChangeNotification a Source #
Represents the notification sent to the subscriber. https://learn.microsoft.com/en-us/graph/api/resources/changenotification?view=graph-rest-1.0
ChangeNotification | |
|
Instances
createSubscription :: FromJSON b => Subscription -> AccessToken -> Req b Source #
Create a subscription https://learn.microsoft.com/en-us/graph/api/subscription-post-subscriptions?view=graph-rest-1.0&tabs=http
POST https://graph.microsoft.com/v1.0/subscriptions
Creating a subscription requires read scope to the resource. For example, to get change notifications on messages, your app needs the Mail.Read
permission.
data Subscription Source #
A subscription allows a client app to receive change notifications about changes to data in Microsoft Graph.
https://learn.microsoft.com/en-us/graph/api/resources/subscription?view=graph-rest-1.0
Subscription | |
|
Instances
data LatestTLSVer Source #
Instances
data ChangeType Source #