WooCommerce.Net.AKG 1.0.0

dotnet add package WooCommerce.Net.AKG --version 1.0.0                
NuGet\Install-Package WooCommerce.Net.AKG -Version 1.0.0                
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="WooCommerce.Net.AKG" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WooCommerce.Net.AKG --version 1.0.0                
#r "nuget: WooCommerce.Net.AKG, 1.0.0"                
#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 WooCommerce.Net.AKG as a Cake Addin
#addin nuget:?package=WooCommerce.Net.AKG&version=1.0.0

// Install WooCommerce.Net.AKG as a Cake Tool
#tool nuget:?package=WooCommerce.Net.AKG&version=1.0.0                

Usage

Add using to your project

1. using WooCommerce.Net.AKG;
2. using WooCommerce.Net.AKG.WooObjects;

Create an instance of the WooCommerce API class

WooAPI wooAPI = new WooAPI("Your_Store_Url/", "Your_Client_Key", "Your_Client_Secret");

Areas of Use

  1. Customer [CRUD]
  2. Inventory [CRUD]
  3. Orders [CRUD]
  4. Carts [CRUD]

Example

 
            var Ords = await Orders.GetAllOrdersAsync();

            Products products = new Products(wooAPI);
            Orders Orders = new Orders(wooAPI);
            Customers customer = new Customers(wooAPI);



            //Gets a specified list of products
            var product = await products.GetProductsAsync(100, new List<int>() { 1 });

            //Gets all products
            var AllProducts = await products.GetAllProductsAsync();

           
            //Updates a product
            var p = await products.GetProductAsync(9750);

            p.manage_stock = true;
            p.stock_quantity = 50;
            p.regular_price = "250.50";
            var up = await products.UpdateProductAsync(9750, p);


            //Creates a new Product
            var newProduct = await products.AddProductAsync(
                new CreateProduct
                {
                    type = "simple",
                    description = "My New Apple Pie",
                    regular_price = "5",
                    name = "Apple Pie",
                    short_description = "The best apple pie ever!"
                });


            //Gets Products Variations
            var variants = await products.GetAllProductVariationsAsync(9352);

           
            //Gets all Orders
            var Ords = await Orders.GetAllOrdersAsync();

           
            //Creates a new note on an order
            var NewNote = await Orders.AddOrderNoteAsync(new CreateOrderNote { note = "Still waiting on payments to be cleared." }, 9923);
           
            //Gets all notes on an order
            var onotes = await Orders.GetAllOrderNotesAsync(9923);


            //Creates refund
            var NewRefund = await Orders.AddOrderRefundAsync(new CreateRefund { amount = "915" }, 9918);
            
            //Gets order refund data
            var orefunds = await Orders.GetAllOrderRefundsAsync(9918);

            //Adds a new Customer
            var nc = await customer.AddCustomerAsync(new CreateCustomer { first_name = "Joan", last_name = "flemming", email = "joanflemming@hotmail.com", username = "jflemming" });
           
            //Gets all Customers
            var c = await customer.GetAllCustomersAsync();
           
            //Gets a customer by ID
            var ct = await customer.GetCustomerAsync(1);

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.0 13,084 8/15/2020

Extends Woocommerce API to communicate with your woocommerce store. Create Update and delete orders,order notes,products, product variations and customers