public object Post(TestNotification request)
        {
            var options = GetOptions(request.UserID);

            var parameters = new Dictionary<string, string>
            {
                {"apikey", options.Token},
                {"event", "Test Notification"},
                {"description", "This is a test notification from MediaBrowser"},
                {"application", "Emby"}
            };

            _logger.Debug("Prowl <TEST> to {0}", options.Token);

            return _httpClient.Post(new HttpRequestOptions { Url = "https://api.prowlapp.com/publicapi/add" }, parameters);
        }
Beispiel #2
0
        public void Post(TestNotification request)
        {
            var task = PostAsync(request);

            Task.WaitAll(task);
        }