![]() |
VOOZH | about |
dotnet add package IkasAdminApiLibrary --version 1.0.9
NuGet\Install-Package IkasAdminApiLibrary -Version 1.0.9
<PackageReference Include="IkasAdminApiLibrary" Version="1.0.9" />
<PackageVersion Include="IkasAdminApiLibrary" Version="1.0.9" />Directory.Packages.props
<PackageReference Include="IkasAdminApiLibrary" />Project file
paket add IkasAdminApiLibrary --version 1.0.9
#r "nuget: IkasAdminApiLibrary, 1.0.9"
#:package IkasAdminApiLibrary@1.0.9
#addin nuget:?package=IkasAdminApiLibrary&version=1.0.9Install as a Cake Addin
#tool nuget:?package=IkasAdminApiLibrary&version=1.0.9Install as a Cake Tool
.NET ile Ikas Admin API üzerinden ürünlerinizi listeleyip yönetmenizi sağlayan basit bir istemci kütüphanedir.
dotnet add package IkasAdminApiLibrary
var config = new Config([ClientId],[ClientSecret],[StoreName]);
var ikasClient = new IkasClient(config);
async Task<Pagination<Product>> GetProducts()
{
var result = await ikasClient.ProductManager.List(new ListProductInput()
{
Name = StringFilterInput.Equal("ÜRÜN ADI"),
Pagination = new PaginationInput(1, 1)
});
if (result.IsFail())
throw new Exception($"Error fetching products: {result.GetMessage()}({result.GetCode()})");
return result.Data;
}
var products = await GetProducts();
foreach (var product in products.Items)
{
Console.WriteLine($"Product ID: {product.Id}, Name: {product.Name}");
}
Mevcut v1 endpoint'leri aynen kullanilmaya devam eder. Sadece mevcut urune varyant ekleme islemi icin AddVariant metodu Ikas'in v2 addVariantToProduct mutation'ini cagirir.
var result = await ikasClient.ProductManager.AddVariant(new AddVariantToProductInput
{
ProductId = "product-id",
Variant = new CreateProductVariantInput
{
IsActive = true,
Sku = "SKU-SIYAH",
Prices =
[
new ProductPriceInput(100)
],
VariantValues =
[
new CreateVariantValueInput
{
VariantTypeName = "Renk",
VariantValueName = "Siyah"
}
]
}
});
if (result.IsFail())
throw new Exception($"{result.GetMessage()} ({result.GetCode()})");
Console.WriteLine($"Updated Product ID: {result.Data.Id}");
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.