Sample C# project that integrates with Sage Accounting via the Sage Accounting API. This Application uses .NET Core 2.2 and Newtonsoft Json.NET.
Clone the repo:
git clone [email protected]:Sage/sageone_api_csharp_sample.git
Switch to the project directory to run the subsequent commands:
cd sageone_api_csharp_sample
switch to the app folder:
cd app
install all dependencies:
dotnet restore
build and run the application:
dotnet build
dotnet run
Then jump to the section Usage.
Build the image:
./script/setup.sh
Start the container:
./script/start.sh
Restart the container:
./script/restart.sh
If you need, stop.sh will stop the container:
./script/stop.sh
You can now access http://localhost:8080/, authorize and make an API call. Depending on your setup, it could also be http://192.168.99.100:8080/ or similar.
This sample application is available as open source under the terms of the MIT licence.
Copyright (c) 2019 Sage Group Plc. All rights reserved.