{"id":22735245,"url":"https://github.com/myazarc/trendyol-api","last_synced_at":"2025-04-14T03:07:13.257Z","repository":{"id":57379767,"uuid":"430157021","full_name":"myazarc/trendyol-api","owner":"myazarc","description":"Js Trendyol Api with Promise and Typescript support","archived":false,"fork":false,"pushed_at":"2021-11-22T11:34:14.000Z","size":103,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T03:07:07.200Z","etag":null,"topics":["javascript-library","js-trendyol","nodejs-trendyol","trendyol-api","trendyol-api-client","ts-trendyol","typescript-library"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myazarc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-20T16:46:04.000Z","updated_at":"2025-02-18T11:20:05.000Z","dependencies_parsed_at":"2022-09-06T05:01:38.973Z","dependency_job_id":null,"html_url":"https://github.com/myazarc/trendyol-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myazarc%2Ftrendyol-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myazarc%2Ftrendyol-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myazarc%2Ftrendyol-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myazarc%2Ftrendyol-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myazarc","download_url":"https://codeload.github.com/myazarc/trendyol-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813795,"owners_count":21165633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript-library","js-trendyol","nodejs-trendyol","trendyol-api","trendyol-api-client","ts-trendyol","typescript-library"],"created_at":"2024-12-10T21:08:33.564Z","updated_at":"2025-04-14T03:07:13.236Z","avatar_url":"https://github.com/myazarc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trendyol-api\n\n[![npm version](https://badge.fury.io/js/trendyol-api.svg)](https://www.npmjs.com/package/trendyol-api)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n![Npm Publish workflow](https://github.com/myazarc/trendyol-api/actions/workflows/main.yml/badge.svg)\n![NPM week download](https://img.shields.io/npm/dw/trendyol-api)\n![jest coverage](https://raw.githubusercontent.com/myazarc/trendyol-api/main/.badges/coverage.svg)\n\nTrendyol Api with Promise and Typescript support.\n\nHttpClient: [axios](https://github.com/axios/axios)\n\n# install\n\n```bash\nnpm install trendyol-api --save\n```\n\nor\n\n```bash\nyarn add trendyol-api\n```\n\n# usage\n\n```js\nimport Trendyol from \"trendyol-api\";\nconst ty = new Trendyol(\"API_KEY\", \"API_SECRET\", \"STORE_ID|MAGAZA_ID\");\n\nty.getBrands().then((res) =\u003e {\n  console.log(res.data);\n});\n```\n\n```js\nconst trendyolApi = require(\"trendyol-api\"),\n  Trendyol = trendyolApi.Trendyol;\nconst ty = new Trendyol(\"API_KEY\", \"API_SECRET\", \"STORE_ID|MAGAZA_ID\");\n\nty.getBrands().then((res) =\u003e {\n  console.log(res.data);\n});\n```\n\n# all methods\n\n| Method                  | Description                                                                                       |\n| ----------------------- | ------------------------------------------------------------------------------------------------- |\n| createProduct           | Ürün göndermek için kullanılır.                                                                   |\n| updatePriceAndInventory | Ürün fiyatı ve stok miktarını güncellemek için kullanılır.                                        |\n| updateProduct           | Ürünün fiyat ve stok miktarı bilgisi hariç diğer bilgilerini güncellemek için kullanılır.         |\n| getFilterProduct        | Kayıtlı ürünlerinizi listelemek için kullanılır.                                                  |\n| getSuppliersAddresses   | İade ve Sevkiyat Adres Bilgilerini listelemek için kullanılır.                                    |\n| getBatchRequestResult   | Ürün servislerinde verilern batchId sorgulaması için kullanılır.                                  |\n| getOrders               | Siparişlerinizi almak için kullanılır.                                                            |\n| getOrderWithAllPages    | Siparişleriniz birden fazla sayfada yer alıyorsa tamamını tek bir methodda almak için kullanılır. |\n| getShipmentProviders    | Kargo Şirketlerini listemek için kullanılır.                                                      |\n| getBrands               | Markaları listelemek için kullanılır.                                                             |\n| getBrandsByName         | Markaları ismine göre aramak için kullanılır.                                                     |\n| getCategories           | Kategorileri listelemek için kullanılır.                                                          |\n| getCategoryAttributes   | Kategori-Özellik listesini almak için kullanılır.                                                 |\n\n## Product\n\n```js\n    createProduct(payload: ProductRequest): Promise\u003cProductResponse\u003e;\n    updatePriceAndInventory(payload: PriceAndInventoryRequest): Promise\u003cPriceAndInventoryResponse\u003e;\n    updateProduct(payload: UpdateProductRequest): Promise\u003cUpdateProductResponse\u003e;\n    getFilterProduct(params?: FilterProductRequest): Promise\u003cFilterProductResponse\u003e;\n    getBatchRequestResult(batchRequestId: string): Promise\u003cBatchRequestResultResponse\u003e;\n```\n\n## Order\n\n```js\n    getOrders(params?: OrderRequest): Promise\u003cOrderResponse\u003e;\n    getOrderWithAllPages(): Promise\u003cOrderResponse[]\u003e;\n```\n\n## Other\n\n```js\n    getShipmentProviders(): Promise\u003cShipmentProviderResponse\u003e;\n    getBrands(params?: BrandRequest): Promise\u003cBrandResponse\u003e;\n    getBrandsByName(brandName: string): Promise\u003cBrandByNameResponse\u003e;\n    getCategoryAttributes(categoryId: number | string): Promise\u003cCategoryAttributeResponse\u003e;\n    getCategories(): Promise\u003cCategoryResponse\u003e;\n    getSuppliersAddresses(): Promise\u003cSuppliersAddressResponse\u003e;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyazarc%2Ftrendyol-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyazarc%2Ftrendyol-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyazarc%2Ftrendyol-api/lists"}