New: Notifiarr moved from webhook to API

This commit is contained in:
bakerboy448 2022-06-07 15:16:25 -05:00
parent a8ecefd91f
commit 61f05710f5
1 changed files with 1 additions and 2 deletions

View File

@ -78,8 +78,7 @@ namespace NzbDrone.Core.Notifications.Notifiarr
try try
{ {
var url = settings.Environment == (int)NotifiarrEnvironment.Development ? "https://dev.notifiarr.com" : "https://notifiarr.com"; var url = settings.Environment == (int)NotifiarrEnvironment.Development ? "https://dev.notifiarr.com" : "https://notifiarr.com";
var requestBuilder = new HttpRequestBuilder(url + "/notifier.php").Post(); var requestBuilder = new HttpRequestBuilder(url + "/api/v1/notification/radarr/" + settings.APIKey).Post();
requestBuilder.AddFormParameter("api", settings.APIKey).Build();
requestBuilder.AddFormParameter("instanceName", settings.InstanceName).Build(); requestBuilder.AddFormParameter("instanceName", settings.InstanceName).Build();
foreach (string key in message.Keys) foreach (string key in message.Keys)