This repository was archived by the owner on Feb 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
XML RPC Lib Notes
Alec Clews edited this page Jan 29, 2020
·
10 revisions
Name | URL | Comments |
---|---|---|
Kveer.XmlRPC | https://www.nuget.org/packages/Kveer.XmlRPC/ | Recently updated, no changes to old required |
NOTE: Developer will need to install the .NET Core SDK,
which provides the dotnet
command-line tool.
This example seems to work (tested with PaperCut NG 19.2.2 and .NET Core SDK 3.1 on Linux)
- Install .NET Core (tested on 3.1)
mkdir dot-net-test
cd dot-net-test/
dotnet new console
dotnet add package Kveer.XmlRPC --version 1.1.1
cp ~papercut/server/examples/webservices/csharp/* .
mv Example.cs Program.cs
- Fix build problems in ServerCommandProxy.cs
/// <summary>
/// Set the user to Auto Charge to Personal
/// </summary>
///
/// <param name="username">
/// The name of the user with the account to credit.
/// </param>
/// <param name="withPopupConfirmation">
/// If a popup confirmation is to be used (Optional. Defaults to false)
/// </param>
///
public void SetUserAccountSelectionAutoChargePersonal(string username, bool withPopupConfirmation = false) {
_proxy.SetUserAccountSelectionAutoChargePersonal(_authToken, username, withPopupConfirmation);
}