Exemple #1
0
        public void Webhooks()
        {
            var createResult = _client.CreateWebHook(_existingRoomId, "http://myurl.com", "", RoomEvent.RoomNotification,
                                                     "testWebhook");

            Assert.NotNull(createResult);

            var allWebhooks = _client.GetAllWebhooks(_existingRoomId);

            Assert.NotNull(allWebhooks);

            var response = _client.GetAllWebhooks(_existingRoomId.ToString());

            Assert.NotNull(response);
            Assert.NotNull(response.Links.Self);

            _client.DeleteWebhook(_existingRoomId, createResult.Id);
        }