EasyKeys.Veeqo.LineItems
2.0.1
See the version list below for details.
dotnet add package EasyKeys.Veeqo.LineItems --version 2.0.1
NuGet\Install-Package EasyKeys.Veeqo.LineItems -Version 2.0.1
<PackageReference Include="EasyKeys.Veeqo.LineItems" Version="2.0.1" />
<PackageVersion Include="EasyKeys.Veeqo.LineItems" Version="2.0.1" />
<PackageReference Include="EasyKeys.Veeqo.LineItems" />
paket add EasyKeys.Veeqo.LineItems --version 2.0.1
#r "nuget: EasyKeys.Veeqo.LineItems, 2.0.1"
#:package EasyKeys.Veeqo.LineItems@2.0.1
#addin nuget:?package=EasyKeys.Veeqo.LineItems&version=2.0.1
#tool nuget:?package=EasyKeys.Veeqo.LineItems&version=2.0.1
Veeqo API Wrapper
Overview
This repository contains a .NET wrapper for the Veeqo API. The wrapper simplifies interaction with Veeqo's various endpoints, allowing developers to easily integrate Veeqo functionalities into their applications.
Features
- Simplified API interaction with Veeqo.
- Support for major Veeqo endpoints (Products, Orders, LineItems, Customers, etc.).
- Error handling and response validation.
- Customizable to fit different use cases.
Installation
To install the Veeqo API Wrapper, you can add the package reference to your project:
<PackageReference Include="EasyKeys.Veeqo" Version="1.0.0" />
Usage
Here's a quick example to get you started:
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using EasyKeys.Veeqo.Orders;
using EasyKeys.Veeqo.LineItems;
using EasyKeys.Veeqo.Orders.Models.Parameters;
// Configure your services
var services = new ServiceCollection();
var dic = new Dictionary<string, string>
{
{ "VeeqoClientOptions:BaseUrl", "https://private-anon-4c0cd8afa3-veeqo.apiary-proxy.com/" },
{ "VeeqoClientOptions:ApiKey" , "your-api-key" },
// Optional per-client override (used when set; otherwise falls back to VeeqoClientOptions)
{ "VeeqoLineItemsClientOptions:BaseUrl", "" },
{ "VeeqoLineItemsClientOptions:ApiKey", "" },
};
var configBuilder = new ConfigurationBuilder().AddInMemoryCollection(dic);
var config = configBuilder.Build();
services.AddSingleton<IConfiguration>(config);
services.AddVeeqoOrdersClient();
services.AddVeeqoLineItemsClient();
var serviceProvider = services.BuildServiceProvider();
var veeqoOrdersClient = serviceProvider.GetRequiredService<IVeeqoOrdersClient>();
var veeqoLineItemsClient = serviceProvider.GetRequiredService<IVeeqoLineItemsClient>();
// Orders
var result = await veeqoOrdersClient.ListOrdersAsync(new GetOrdersParameters() { Page_Size = 10 });
var order = await veeqoOrdersClient.GetOrderAsync(1);
// Line Items
var updatedLineItemNote = await veeqoLineItemsClient.UpdateLineItemNotesAsync(12345, "This is a note for the line item");
Authentication
To use the Veeqo API, you need to obtain an API key from your Veeqo account.
Options pattern
This client supports the following configuration pattern:
- Base/shared options:
VeeqoClientOptions(VeeqoClientOptions:BaseUrl,VeeqoClientOptions:ApiKey) - Per-client override options:
VeeqoLineItemsClientOptions(VeeqoLineItemsClientOptions:BaseUrl,VeeqoLineItemsClientOptions:ApiKey)
If a per-client option value is missing/empty, the client falls back to the base VeeqoClientOptions value.
Endpoints
The wrapper supports the following Veeqo endpoints:
Line Items
UpdateLineItemNotesAsync(lineItemId, note): Update notes for a specific line item.
Models
Request Models
Request models are used to structure the data sent to the Veeqo API when creating or updating resources. For example, RequestOrder is used when creating or updating an order. These models are located in the Models/Request folder.
Response Models
Response models represent the structure of the data returned by the Veeqo API. For example, Order is used to represent the details of an order returned by the API. These models are located in the Models/Response folder.
Parameters Models
Parameter models are used to filter and paginate the results when retrieving data from the API. For example, GetOrdersParameters allows you to specify various criteria such as date range, status, and pagination options to refine the results returned by the API. These models are located in the Models/Parameters folder.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
If you have any questions or suggestions, please feel free to open an issue or contact us directly.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- EasyKeys.Veeqo.Abstractions (>= 2.0.1)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.2)
- Microsoft.Extensions.Configuration.FileExtensions (>= 10.0.2)
- Microsoft.Extensions.Configuration.Json (>= 10.0.2)
- Microsoft.Extensions.Configuration.UserSecrets (>= 10.0.2)
- Microsoft.Extensions.DependencyInjection (>= 10.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.2)
- Microsoft.Extensions.Logging.Console (>= 10.0.2)
-
net8.0
- EasyKeys.Veeqo.Abstractions (>= 2.0.1)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.2)
- Microsoft.Extensions.Configuration.FileExtensions (>= 10.0.2)
- Microsoft.Extensions.Configuration.Json (>= 10.0.2)
- Microsoft.Extensions.Configuration.UserSecrets (>= 10.0.2)
- Microsoft.Extensions.DependencyInjection (>= 10.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.2)
- Microsoft.Extensions.Logging.Console (>= 10.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.