@farukaydogan/trendyol-api-v2
v1.1.2
Published
A Node.js library for accessing the Trendyol API, which allows you to list products, orders, and more.
Readme
Trendyol Api
A Node.js library for accessing the Trendyol API, which allows you to list products, orders, and more.
Installation
npm install @farukaydogan/trendyol-api-v2Usage
Create class with shop credentials.
const {Trendyol} = require('@farukaydogan/trendyol-api-v2');Originally
https://www.npmjs.com/package/@rexven-tech/trendyol-api
Smoke test
Build and run smoke tests against your account by providing env vars:
set SHOP_ID=123456 && set API_KEY=yourKey && set API_SECRET=yourSecret && npm run smokeOptional envs to exercise extra endpoints:
BARCODE— forgetProductDetailByBarcodeORDER_ID— forgetOrderDetailByOrderIdINVOICE_ID— forgetInvoiceTRANSACTION_TYPEandDAYorSTART_DATE— for financials/settlementsWEBHOOK_URLandWEBHOOK_STATUSES(comma-separated) — to register a webhook
