.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}");
}