diff --git a/Moesif.Api.Test/ApiControllerTest.cs b/Moesif.Api.Test/ApiControllerTest.cs index a70a567..9531508 100644 --- a/Moesif.Api.Test/ApiControllerTest.cs +++ b/Moesif.Api.Test/ApiControllerTest.cs @@ -25,9 +25,7 @@ private EventModel CreateEvent() reqHeaders.Add("Host", "api.acmeinc.com"); reqHeaders.Add("Accept", "*/*"); reqHeaders.Add("Connection", "Keep-Alive"); - reqHeaders.Add("User-Agent", "Dalvik/2.1.0 (Linux; U; Android 5.0.2; C6906 Build/14.5.A.0.242)"); reqHeaders.Add("Content-Type", "application/json"); - reqHeaders.Add("Content-Length", "126"); reqHeaders.Add("Accept-Encoding", "gzip"); var reqBody = ApiHelper.JsonDeserialize(@" { @@ -44,7 +42,6 @@ private EventModel CreateEvent() }"); var rspHeaders = new Dictionary(); - rspHeaders.Add("Date", "Tue, 20 Aug 2019 23:46:49 GMT"); rspHeaders.Add("Vary", "Accept-Encoding"); rspHeaders.Add("Pragma", "no-cache"); rspHeaders.Add("Expires", "-1"); @@ -86,9 +83,9 @@ private EventModel CreateEvent() { Request = eventReq, Response = eventRsp, - UserId = "my_user_id", - CompanyId = "my_company_id", - SessionToken = "23jdf0owekfmcn4u3qypxg09w4d8ayrcdx8nu2ng]s98y18cx98q3yhwmnhcfx43f", + UserId = "123456", + CompanyId = "67890", + SessionToken = "XXXXXXXXX", Metadata = metadata }; @@ -238,7 +235,7 @@ public async Task TestUpdateUsersBatch() UserId = "1234", CompanyId = "6789", Metadata = metadata, - SessionToken = "23jdf0owekfmcn4u3qypxg09w4d8ayrcdx8nu2ng]s98y18cx98q3yhwmnhcfx43f", + SessionToken = "XXXXXXXXX", ModifiedTime = DateTime.UtcNow }; diff --git a/Moesif.Api.Test/ControllerTestBase.cs b/Moesif.Api.Test/ControllerTestBase.cs index 7996164..cf6af4d 100644 --- a/Moesif.Api.Test/ControllerTestBase.cs +++ b/Moesif.Api.Test/ControllerTestBase.cs @@ -44,7 +44,7 @@ public static MoesifApiClient GetClient() { if (client == null) { - client = new MoesifApiClient("eyJhcHAiOiIzNjU6NiIsInZlciI6IjIuMCIsIm9yZyI6IjM1OTo0IiwiaWF0IjoxNDczMzc5MjAwfQ.9WOx3D357PGMxrXzFm3pV3IzJSYNsO4oRudiMI8mQ3Q"); + client = new MoesifApiClient("Your Moesif Application Id"); } return client; } diff --git a/Moesif.Api/Moesif.Api.csproj b/Moesif.Api/Moesif.Api.csproj index f55f365..4fd3463 100644 --- a/Moesif.Api/Moesif.Api.csproj +++ b/Moesif.Api/Moesif.Api.csproj @@ -1,38 +1,7 @@ - + - Moesif.Api - Moesif.Api - Library - bin/DEBUG/ - {20962015-F6CA-43BC-9D33-897C6648B556} - ..\ - 11.0 - ee2bb91c - - - {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Debug - AnyCPU - v4.0 - Profile328 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 + netstandard2.0;net45 + false true @@ -40,74 +9,27 @@ Moesif.Api.snk - - - ..\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net40+sl4+win8+wp71+wpa81\Microsoft.Threading.Tasks.dll - - - ..\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net40+sl4+win8+wp71+wpa81\Microsoft.Threading.Tasks.Extensions.dll - - - ..\packages\Newtonsoft.Json.9.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll - - - ..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+win8+wp8+wpa81\System.IO.dll - - - ..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.dll - - - ..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Extensions.dll - - - ..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Primitives.dll - - - ..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+win8+wp8+wpa81\System.Runtime.dll - - - ..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+win8+wp8+wpa81\System.Threading.Tasks.dll - - - ..\packages\Unirest-APIMATIC.1.0.1.26\lib\portable-net40+sl5+wp80+win8+wpa81\unirest-net.dll - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - \ No newline at end of file diff --git a/Moesif.Api/Moesif.Api.nuspec b/Moesif.Api/Moesif.Api.nuspec index 51fa5e6..85a6736 100644 --- a/Moesif.Api/Moesif.Api.nuspec +++ b/Moesif.Api/Moesif.Api.nuspec @@ -2,7 +2,7 @@ Moesif.Api - 1.1.9 + 2.0.0 MoesifApi Moesif Moesif @@ -13,20 +13,23 @@ Log API Calls to Moesif API Analytics - Copyright 2019 + Copyright 2020 en-US - moesif restful rest graphql web3 api analytics log logging error debug - - - - - - - - + azure web app moesif API analytics insights debug debugging log logging apm performance monitor monitoring restful rest graphql ethereum web3 json-rpc soap net microsoft + + + + + + + + + + - + + diff --git a/Moesif.Api/Properties/AssemblyInfo.cs b/Moesif.Api/Properties/AssemblyInfo.cs index 4f202e5..cd5aa4b 100644 --- a/Moesif.Api/Properties/AssemblyInfo.cs +++ b/Moesif.Api/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Moesif, Inc")] [assembly: AssemblyProduct("Moesif.Api")] -[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyCopyright("Copyright © 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Version information for an assembly consists of the following four values: @@ -23,5 +23,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.9")] -[assembly: AssemblyFileVersion("1.1.9")] +[assembly: AssemblyVersion("2.0.0")] +[assembly: AssemblyFileVersion("2.0.0")] diff --git a/Moesif.Api/nuget.exe b/Moesif.Api/nuget.exe new file mode 100644 index 0000000..0f83b17 Binary files /dev/null and b/Moesif.Api/nuget.exe differ diff --git a/Moesif.Api/packages.config b/Moesif.Api/packages.config index 340870c..392c3e2 100644 --- a/Moesif.Api/packages.config +++ b/Moesif.Api/packages.config @@ -4,6 +4,4 @@ - - \ No newline at end of file