M3H5Lib.Api 1.0.2

dotnet add package M3H5Lib.Api --version 1.0.2                
NuGet\Install-Package M3H5Lib.Api -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="M3H5Lib.Api" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add M3H5Lib.Api --version 1.0.2                
#r "nuget: M3H5Lib.Api, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install M3H5Lib.Api as a Cake Addin
#addin nuget:?package=M3H5Lib.Api&version=1.0.2

// Install M3H5Lib.Api as a Cake Tool
#tool nuget:?package=M3H5Lib.Api&version=1.0.2                

M3H5Lib

This library is a high level wrapper for the Infor/Lawson/M3/Movex C# .Net Standard library ERP system. It used based upon the GaryWayneSmith/ExtensibleHttp library

The resource models contained here are mostly auto-generated. Some elements might not return the expected return type, and when in doubt it returns strings. Not all applications are included as the installation of Infor didn't have full access to all modules.

If you have additional applications that need created, clone the repository, make the applicable changes, and push for review.

Example config values.

{
	"m3config": {
		"BasePath": "/m3api-rest/execute",
		"Company": 1,
		"Authorization": "Basic BASE64ENCODED(USER:PASSWORD)",
		"Debug": false,
		"BaseUri": "https://HOSTNAME:PORT/",
		"UserAgent": "M3H5Lib",
		"ApiFormat": "Json",
		"RequestTimeoutMs": 100000
	}
}

Example ErpConfig.cs

public class ErpConfig
{
	public static async Task<M3Config> GetConfig(CancellationToken cancellationToken)
	{
		int port = 443;
		string host = "https://erpserver.local"
		string username = "username";
		string password = "password";

		bool useSsl = true;

		M3Config config = await M3Config.GetConfig(
			host: host,
			port: port,
			ssl: useSsl,
			username: username,
			password: password,
			basePath: "/m3api-rest/execute",
			company: 1,
			cancellationToken: cancellationToken
		);
		return config;
	}
}

Example resource call

using M3H5Lib;
using M3H5Lib.Api;
using M3H5Lib.Api.OIS100MI;
using M3H5Lib.Models;

public async Task<GetHeadResponse> GetOrderStatus(string erpNumber, CancellationToken cancellationToken)
{
	M3Config config = await ErpConfig.GetConfig(cancellationToken);
	ApiClient apiClient = new ApiClient(config);
	OIS100MIResource resource = new OIS100MIResource(apiClient);

	M3Response<GetHeadResponse> response = await resource.GetHead(
		m3_CONO: config.Company,
		m3_ORNO: erpNumber,
		throwExceptionWithoutSuccess: true,
		cancellationToken: cancellationToken);

	if (!response.Success)
	{
		_logger.LogWarning("Failed to retreive record, {message}", response.Message);
		return null;
	}
	return response.Rows.FirstOrDefault();
}

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 108 6/5/2024