0
votes

I raise a subscription request as below and the response is:

Subscription validation request failed. Must respond with 200 OK to this request.

Ho do I do I send this response please in UWP?

var result = await request.AddAsync(
                            new Subscription
                            {
                                ChangeType = "created,updated",
                                NotificationUrl = "https://webhook.azurewebsites.net/notificationClient",
                                Resource = "/me/mailfolders('inbox')/messages",
                                ExpirationDateTime = DateTimeOffset.Now.AddMinutes(20),
                                ClientState = Guid.NewGuid().ToString()
                            }
                            );

Ok, I think i need the webhook and the notificationClient, how/ where do i get these values?

1

1 Answers

0
votes

Graph webhooks are not possible on UWP, at this time streaming notifications should be used from the outlook 365 api.