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

            var parameters = new Dictionary<string, string>
            {
                {"AuthorizationToken", options.Token},
                {"Title", "Test Notification" },
                {"Body", "This is a test notification from MediaBrowser"}
            };

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

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

            Task.WaitAll(task);
        }