AnnytabWebshopClientAPI 1.0.7
dotnet add package AnnytabWebshopClientAPI --version 1.0.7
NuGet\Install-Package AnnytabWebshopClientAPI -Version 1.0.7
<PackageReference Include="AnnytabWebshopClientAPI" Version="1.0.7" />
paket add AnnytabWebshopClientAPI --version 1.0.7
#r "nuget: AnnytabWebshopClientAPI, 1.0.7"
// Install AnnytabWebshopClientAPI as a Cake Addin #addin nuget:?package=AnnytabWebshopClientAPI&version=1.0.7 // Install AnnytabWebshopClientAPI as a Cake Tool #tool nuget:?package=AnnytabWebshopClientAPI&version=1.0.7
A client API in ASP.NET and C# that can be used to interact with a-webshop. You can use this client API to create applications in ASP.NET that interacts with a-webshop.
A quick start guide
Create an administrator in a-webshop with a API role, there is three different roles (API Full Trust, API Medium Trust, API Minimal Trust).
The namespace for the API is Annytab.WebshopClientAPI. You need to create a ClientConnection before you call methods in the API. All the methods is async so need to specify the await keyword before the method call.
// Create the connection
ClientConnection connection = new ClientConnection("https://localhost:44301", "TestAPI", "test");
// Get posts
List<Campaign> campaigns = await Campaign.GetAll(connection, 0, "id", "ASC");
// Dispose of the connection
connection.Dispose();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Microsoft.AspNet.WebApi.Client (>= 5.2.3)
- Microsoft.Bcl.Build (>= 1.0.21)
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 10.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Changed target framework to 4.6.1 and changed to UTF-8 encoding in connection classes.