diff --git a/.gitignore b/.gitignore
index 4440932..f7f2951 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@ Saasu.API.Client.IntegrationTests/bin/
*.bak
*.orig
Saasu.API.Core/Saasu.API.Core.csproj.user
+/.vs/Saasu.API.Dotnet.Client/v15/Server/sqlite3
diff --git a/Saasu.API.Client.IntegrationTests/App.config b/Saasu.API.Client.IntegrationTests/App.config
index f45aeed..7d922f5 100644
--- a/Saasu.API.Client.IntegrationTests/App.config
+++ b/Saasu.API.Client.IntegrationTests/App.config
@@ -48,9 +48,9 @@
-
+
-
\ No newline at end of file
+
diff --git a/Saasu.API.Client.IntegrationTests/Saasu.API.Client.IntegrationTests.csproj b/Saasu.API.Client.IntegrationTests/Saasu.API.Client.IntegrationTests.csproj
index ccf5b8b..7d734cf 100644
--- a/Saasu.API.Client.IntegrationTests/Saasu.API.Client.IntegrationTests.csproj
+++ b/Saasu.API.Client.IntegrationTests/Saasu.API.Client.IntegrationTests.csproj
@@ -11,7 +11,7 @@
Properties
Saasu.API.Client.IntegrationTests
Saasu.API.Client.IntegrationTests
- v4.7.1
+ v4.6.1
512
{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
app.config
@@ -60,8 +60,8 @@
..\packages\Saasu.API.Dotnet.LegacyRestClient.1.0\lib\Netaccounts.Ola.RestClient.dll
-
- ..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll
+
+ ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll
..\packages\NUnit.2.6.4\lib\nunit.framework.dll
diff --git a/Saasu.API.Client.IntegrationTests/packages.config b/Saasu.API.Client.IntegrationTests/packages.config
index 7a443b3..413c8c3 100755
--- a/Saasu.API.Client.IntegrationTests/packages.config
+++ b/Saasu.API.Client.IntegrationTests/packages.config
@@ -1,7 +1,7 @@
-
+
\ No newline at end of file
diff --git a/Saasu.API.Client/App.config b/Saasu.API.Client/App.config
index f596bd6..51db0a4 100644
--- a/Saasu.API.Client/App.config
+++ b/Saasu.API.Client/App.config
@@ -11,7 +11,7 @@
- false
+ true
https://api.saasu.com/
@@ -41,9 +41,9 @@
-
+
-
\ No newline at end of file
+
diff --git a/Saasu.API.Client/Config.Designer.cs b/Saasu.API.Client/Config.Designer.cs
index 285bef9..1ae79a4 100644
--- a/Saasu.API.Client/Config.Designer.cs
+++ b/Saasu.API.Client/Config.Designer.cs
@@ -12,7 +12,7 @@ namespace Saasu.API.Client {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
internal sealed partial class Config : global::System.Configuration.ApplicationSettingsBase {
private static Config defaultInstance = ((Config)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Config())));
diff --git a/Saasu.API.Client/Framework/BaseProxy.cs b/Saasu.API.Client/Framework/BaseProxy.cs
index 861f748..0801010 100644
--- a/Saasu.API.Client/Framework/BaseProxy.cs
+++ b/Saasu.API.Client/Framework/BaseProxy.cs
@@ -1,4 +1,5 @@
-using Saasu.API.Core.Framework;
+using System;
+using Saasu.API.Core.Framework;
using Saasu.API.Core.Globals;
using Saasu.API.Core.Models.RequestFiltering;
using System.IO;
@@ -246,6 +247,14 @@ public virtual ProxyResponse GetResponse(string requestUrl)
return new ProxyResponse(rawResponse, responseMsg.IsSuccessStatusCode, responseMsg.StatusCode, responseMsg.ReasonPhrase);
}
+ public virtual ProxyResponse GetBinaryResponse(string requestUrl)
+ {
+ var responseMsg = GetResponseMessage(requestUrl);
+ var content = responseMsg.Content.ReadAsByteArrayAsync().Result;
+ var rawResponse = string.Empty;
+ return new ProxyResponse(rawResponse, content, responseMsg.IsSuccessStatusCode, responseMsg.StatusCode, responseMsg.ReasonPhrase);
+ }
+
public virtual ProxyResponse GetResponse(string requestUri) where T : class
{
return GetResponse(requestUri, null);
@@ -292,57 +301,48 @@ protected virtual System.Net.Http.HttpResponseMessage GetResponseMessage(string
{
return GetResponseMessage