IkasAdminApiLibrary 2.0.0-beta.1
dotnet add package IkasAdminApiLibrary --version 2.0.0-beta.1
NuGet\Install-Package IkasAdminApiLibrary -Version 2.0.0-beta.1
<PackageReference Include="IkasAdminApiLibrary" Version="2.0.0-beta.1" />
<PackageVersion Include="IkasAdminApiLibrary" Version="2.0.0-beta.1" />
<PackageReference Include="IkasAdminApiLibrary" />
paket add IkasAdminApiLibrary --version 2.0.0-beta.1
#r "nuget: IkasAdminApiLibrary, 2.0.0-beta.1"
#:package IkasAdminApiLibrary@2.0.0-beta.1
#addin nuget:?package=IkasAdminApiLibrary&version=2.0.0-beta.1&prerelease
#tool nuget:?package=IkasAdminApiLibrary&version=2.0.0-beta.1&prerelease
IkasAdminApiLibrary
.NET ile ikas Admin API v2 uzerinden urun, siparis, musteri, merchant, satis kanali, stok lokasyonu, fiyat listesi, webhook ve storefront islemleri icin istemci kutuphanesi.
v1 kodu v1 branch'inde korunur. Bu branch ikas Admin API v2 endpoint'lerini kullanir.
Dokumantasyon
- v2 migration ve degisiklik notlari
- Ikas Admin API v2 Postman dokumani: https://documenter.getpostman.com/view/17621802/2sAYJ7eyUq
Kurulum
dotnet add package IkasAdminApiLibrary
NuGet Versiyonlama
GitHub Actions, v* veya V* tag push edildiginde NuGet paketi yayinlar. Tag adindaki v kaldirilir ve kalan kisim NuGet paket surumu olarak kullanilir.
Beta paket yayinlamak icin:
git tag v2.0.0-beta.1
git push origin v2.0.0-beta.1
Stable paket yayinlamak icin:
git tag v2.0.0
git push origin v2.0.0
Tag, 3 parcali SemVer formatinda olmalidir: v2.0.0, v2.0.1, v2.0.0-beta.1. v2.0.0.0-beta veya v2.0.0.-beta.1 gibi 4 parcali ya da fazladan nokta iceren surumler kullanilmaz.
Lokal paket almak icin:
dotnet pack IkasAdminApiLibrary/IkasAdminApiLibrary.csproj -c Release /p:PackageVersion=2.0.0-beta.1 /p:Version=2.0.0-beta.1
Client Olusturma
using IkasAdminApiLibrary;
using IkasAdminApiLibrary.Abstracts;
IConfig config = new Config(
clientId: "client-id",
clientSecret: "client-secret",
storeName: "store-name",
tokenStoragePath: "token.json");
IIkasClient client = new IkasClient(config);
Urun Listeleme
using IkasAdminApiLibrary.Api.Common.Models;
using IkasAdminApiLibrary.Api.Products.Models.Inputs;
var result = await client.ProductManager.List(new ListProductInput
{
Pagination = new PaginationInput(20, 1)
});
if (result.IsFail())
throw new Exception($"{result.GetMessage()} ({result.GetCode()})");
foreach (var product in result.Data.Data)
Console.WriteLine($"{product.Id} - {product.Name}");
v2 Varyant Ekleme
v2'de varyant degeri yazarken ID yerine isim kullanilir:
var result = await client.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"
}
]
}
});
v2 Manager'lar
ProductManagerOrderManagerCustomerManagerMerchantManagerSalesChannelsManagerStockLcationManagerPriceListsManagerWebhookManagerTimelineManagerStorefrontManager
Test Console
Test console projesinde v1 ve v2 ornekleri ayri siniflarda tutulur:
V1ExamplesV2Examples
| 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 was computed. 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. |
-
net8.0
- GraphQL.Query.Builder (>= 2.2.1)
- Newtonsoft.Json (>= 13.0.3)
- System.Security.Cryptography.ProtectedData (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Ikas Admin API v2 endpoint ve model uyumluluğu.