Skip to content

Commit

Permalink
Add DeviceHub endpoint mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaumov committed Jan 31, 2020
1 parent b11f4cd commit 618eb3f
Show file tree
Hide file tree
Showing 579 changed files with 3,942 additions and 4,578 deletions.
9 changes: 8 additions & 1 deletion Acumatica REST API Client.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.Auth", "Acumatica
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.RESTClient", "Acumatica.RESTClient\Acumatica.RESTClient.csproj", "{25008D3F-3D78-4BB9-B14B-0A792AE97892}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.DefaultEndpoint_18.200.001", "Default.18.200.001\Acumatica.DefaultEndpoint_18.200.001.csproj", "{B26A386B-F5DA-4679-ACBA-1541251B696B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.Default_18.200.001", "Default.18.200.001\Acumatica.Default_18.200.001.csproj", "{B26A386B-F5DA-4679-ACBA-1541251B696B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SOAPLikeWrapperForREST", "SOAPLikeWrapperForREST\SOAPLikeWrapperForREST.csproj", "{99541823-473A-46E8-AEC0-CE6250F00FE8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Endpoints", "Endpoints", "{F0B2BD45-79AE-43AF-B737-3018CD95C6E3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.DeviceHub_17.200.001", "Acumatica.DeviceHub_17.200.001\Acumatica.DeviceHub_17.200.001.csproj", "{4FDDE01D-C802-4E52-9458-B614B1C8EFAB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -41,13 +43,18 @@ Global
{99541823-473A-46E8-AEC0-CE6250F00FE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{99541823-473A-46E8-AEC0-CE6250F00FE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{99541823-473A-46E8-AEC0-CE6250F00FE8}.Release|Any CPU.Build.0 = Release|Any CPU
{4FDDE01D-C802-4E52-9458-B614B1C8EFAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4FDDE01D-C802-4E52-9458-B614B1C8EFAB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4FDDE01D-C802-4E52-9458-B614B1C8EFAB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4FDDE01D-C802-4E52-9458-B614B1C8EFAB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{5B17772D-1F76-4A4B-A3F7-8C8CFFA93E29} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3}
{B26A386B-F5DA-4679-ACBA-1541251B696B} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3}
{4FDDE01D-C802-4E52-9458-B614B1C8EFAB} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A3A45447-0EDA-45D2-94CE-C3BFFBFE2717}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
<Project>{25008d3f-3d78-4bb9-b14b-0a792ae97892}</Project>
<Name>Acumatica.RESTClient</Name>
</ProjectReference>
<ProjectReference Include="..\Default.18.200.001\Acumatica.DefaultEndpoint_18.200.001.csproj">
<ProjectReference Include="..\Default.18.200.001\Acumatica.Default_18.200.001.csproj">
<Project>{B26A386B-F5DA-4679-ACBA-1541251B696B}</Project>
<Name>Acumatica.DefaultEndpoint_18.200.001</Name>
<Name>Acumatica.Default_18.200.001</Name>
</ProjectReference>
<ProjectReference Include="..\SOAPLikeWrapperForREST\SOAPLikeWrapperForREST.csproj">
<Project>{99541823-473a-46e8-aec0-ce6250f00fe8}</Project>
Expand Down
2 changes: 1 addition & 1 deletion Acumatica REST API Console Application/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Acumatica.Auth.Api;
using Acumatica.Auth.Model;
using Acumatica.DefaultEndpoint_18_200_001.Api;
using Acumatica.Default_18_200_001.Api;
using Acumatica.RESTClient.Client;
using System;
using System.Collections.Generic;
Expand Down
4 changes: 2 additions & 2 deletions Acumatica REST API Console Application/RESTExample.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Acumatica.Auth.Api;
using Acumatica.Auth.Model;
using Acumatica.DefaultEndpoint_18_200_001.Api;
using Acumatica.DefaultEndpoint_18_200_001.Model;
using Acumatica.Default_18_200_001.Api;
using Acumatica.Default_18_200_001.Model;
using Acumatica.RESTClient.Client;
using System;
using System.Collections.Generic;
Expand Down
96 changes: 48 additions & 48 deletions Acumatica REST API Console Application/SOAPLikeExample.cs
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
using Acumatica.DefaultEndpoint_18_200_001.Model;
using SOAPLikeWrapperForREST;
using System;

namespace AcumaticaRestApiExample
{
public class SOAPLikeExample
{
public static void ExampleMethod(string siteURL, string username, string password, string tenant = null, string branch = null, string locale = null)
{
var restClient = new RESTClient(siteURL);

try
{
restClient.Login(username, password, tenant, branch, locale);
Console.WriteLine("Logged In");

Shipment shipment = new Shipment()
{
ShipmentNbr = new StringSearch() { Value = "002644" },
//Packages = new ShipmentPackage[]
//{
// new ShipmentPackage {
// ReturnBehavior= ReturnBehavior.All,
// PacakgeContents = new PacakgeContents[]
// {
// new PacakgeContents() { ReturnBehavior= ReturnBehavior.All}
// }
// }
//}
};
shipment = (Shipment)restClient.Get(shipment);

Console.WriteLine("Shipped Qty= " + shipment.ShippedQty.Value);
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
}
finally
{
restClient.Logout();
Console.WriteLine("Logged Out");
}

}
}
}
using Acumatica.Default_18_200_001.Model;
using SOAPLikeWrapperForREST;
using System;

namespace AcumaticaRestApiExample
{
public class SOAPLikeExample
{
public static void ExampleMethod(string siteURL, string username, string password, string tenant = null, string branch = null, string locale = null)
{
var restClient = new RESTClient(siteURL);

try
{
restClient.Login(username, password, tenant, branch, locale);
Console.WriteLine("Logged In");

Shipment shipment = new Shipment()
{
ShipmentNbr = new StringSearch() { Value = "002644" },
//Packages = new ShipmentPackage[]
//{
// new ShipmentPackage {
// ReturnBehavior= ReturnBehavior.All,
// PacakgeContents = new PacakgeContents[]
// {
// new PacakgeContents() { ReturnBehavior= ReturnBehavior.All}
// }
// }
//}
};
shipment = (Shipment)restClient.Get(shipment);

Console.WriteLine("Shipped Qty= " + shipment.ShippedQty.Value);
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
}
finally
{
restClient.Logout();
Console.WriteLine("Logged Out");
}

}
}
}
Loading

0 comments on commit 618eb3f

Please sign in to comment.