1.1.0 • Published 2 years ago

trendyol-api v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

trendyol-api

npm version License: MIT Npm Publish workflow NPM week download jest coverage

Trendyol Api with Promise and Typescript support.

HttpClient: axios

install

npm install trendyol-api --save

or

yarn add trendyol-api

usage

import Trendyol from "trendyol-api";
const ty = new Trendyol("API_KEY", "API_SECRET", "STORE_ID|MAGAZA_ID");

ty.getBrands().then((res) => {
  console.log(res.data);
});
const trendyolApi = require("trendyol-api"),
  Trendyol = trendyolApi.Trendyol;
const ty = new Trendyol("API_KEY", "API_SECRET", "STORE_ID|MAGAZA_ID");

ty.getBrands().then((res) => {
  console.log(res.data);
});

all methods

MethodDescription
createProductÜrün göndermek için kullanılır.
updatePriceAndInventoryÜrün fiyatı ve stok miktarını güncellemek için kullanılır.
updateProductÜrünün fiyat ve stok miktarı bilgisi hariç diğer bilgilerini güncellemek için kullanılır.
getFilterProductKayıtlı ürünlerinizi listelemek için kullanılır.
getSuppliersAddressesİade ve Sevkiyat Adres Bilgilerini listelemek için kullanılır.
getBatchRequestResultÜrün servislerinde verilern batchId sorgulaması için kullanılır.
getOrdersSiparişlerinizi almak için kullanılır.
getOrderWithAllPagesSiparişleriniz birden fazla sayfada yer alıyorsa tamamını tek bir methodda almak için kullanılır.
getShipmentProvidersKargo Şirketlerini listemek için kullanılır.
getBrandsMarkaları listelemek için kullanılır.
getBrandsByNameMarkaları ismine göre aramak için kullanılır.
getCategoriesKategorileri listelemek için kullanılır.
getCategoryAttributesKategori-Özellik listesini almak için kullanılır.

Product

    createProduct(payload: ProductRequest): Promise<ProductResponse>;
    updatePriceAndInventory(payload: PriceAndInventoryRequest): Promise<PriceAndInventoryResponse>;
    updateProduct(payload: UpdateProductRequest): Promise<UpdateProductResponse>;
    getFilterProduct(params?: FilterProductRequest): Promise<FilterProductResponse>;
    getBatchRequestResult(batchRequestId: string): Promise<BatchRequestResultResponse>;

Order

    getOrders(params?: OrderRequest): Promise<OrderResponse>;
    getOrderWithAllPages(): Promise<OrderResponse[]>;

Other

    getShipmentProviders(): Promise<ShipmentProviderResponse>;
    getBrands(params?: BrandRequest): Promise<BrandResponse>;
    getBrandsByName(brandName: string): Promise<BrandByNameResponse>;
    getCategoryAttributes(categoryId: number | string): Promise<CategoryAttributeResponse>;
    getCategories(): Promise<CategoryResponse>;
    getSuppliersAddresses(): Promise<SuppliersAddressResponse>;
1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago