Trendyol Integration
Integrate your services with trendyol
How to use
dotnet add package Integration.Marketplaces.Trendyol
Configure your credentials which are given by trendyol
using Integration.Marketplaces.Trendyol.Infrastructure.ProductIntegration;
var trendyolProductIntegration = new TrendyolProductIntegration(
supplierId: "supplierId",
apiKey: "apiKey",
apiSecret: "apiSecret",
isInProduction: false,
entegratorFirm: "entegratorFirm");
tip
You have to get your supplierId, apiKey and apiSecret from trendyol.
Get all categories
var categories = await trendyolProductIntegration.GetCategoryTreeAsync();
Get all brands
var brands = await trendyolProductIntegration.GetBrandsAsync();
Filter products
Get values of category attribute
var productFilter = new ProductFilterBuilder()
.AddApprovalStatus(true)
.AddBarcode("barcode")
.AddStartDate(0)
.AddEndDate(0)
.AddPage(1)
.AddSize(10)
.AddSupplierId(0)
.Build();
var products = await trendyolProductIntegration.FilterProductsAsync(productFilter);