mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-21 22:05:43 -04:00
Added UserAgent to RestClient.
This commit is contained in:
committed by
Mark McDowall
parent
e9f39493f4
commit
9a649cf58e
@@ -28,7 +28,7 @@ namespace NzbDrone.Core.Notifications.NotifyMyAndroid
|
||||
|
||||
public void SendNotification(string title, string message, string apiKey, NotifyMyAndroidPriority priority)
|
||||
{
|
||||
var client = new RestClient(URL);
|
||||
var client = RestClientFactory.BuildClient(URL);
|
||||
var request = new RestRequest("notify", Method.POST);
|
||||
request.RequestFormat = DataFormat.Xml;
|
||||
request.AddParameter("apikey", apiKey);
|
||||
@@ -43,7 +43,7 @@ namespace NzbDrone.Core.Notifications.NotifyMyAndroid
|
||||
|
||||
private void Verify(string apiKey)
|
||||
{
|
||||
var client = new RestClient(URL);
|
||||
var client = RestClientFactory.BuildClient(URL);
|
||||
var request = new RestRequest("verify", Method.GET);
|
||||
request.RequestFormat = DataFormat.Xml;
|
||||
request.AddParameter("apikey", apiKey, ParameterType.GetOrPost);
|
||||
|
||||
Reference in New Issue
Block a user