allegro / allegro/allegro-api

[NEWS] GET /fulfillment/stock i GET /fulfillment/available-products - dodaliśmy obsługę nagłówka Accept-Language / GET /fulfillment/stock and GET /fulfillment/available-products - we have added support for the Accept-Language header

Aperta
#8,077 0 commenti 0 reazioni 1 assegnatario Rivendicata da @MaciejFrackowiak Vedi su GitHub
News
Lingua principale
Nessun dato sulla lingua
Stelle
244
Fork
40
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Za pomocą [GET /fulfillment/stock](https://developer.allegro.pl/documentation/#operation/getFulfillmentStock) pobierzesz listę aktualnych stanów magazynowych twoich produktów, a dzięki [GET /fulfillment/available-products](https://developer.allegro.pl/documentation/#operation/getAvailableProducts) pobierzesz listę dostępnych do zawizowania produktów w ramach usługi [One Fulfillment by Allegro](https://allegro.pl/kampania/fulfillment).

**Jak to działało do tej pory?**

W odpowiedzi dla:
- [GET /fulfillment/stock](https://developer.allegro.pl/documentation/#operation/getFulfillmentStock),
- [GET /fulfillment/available-products](https://developer.allegro.pl/documentation/#operation/getAvailableProducts)

zwracaliśmy podstawowe informacje o produktach, w tym ich nazwę (pole “**name**”) w języku bezpośrednio pobranym z [Katalogu Produktów Allegro](https://developer.allegro.pl/tutorials/glosariusz-VL6Yel7BnSz#katalog-produktow).

**Co zmieniliśmy?**

Dodaliśmy obsługę nagłówka “**Accept-Language**”, dzięki któremu zdecydujesz w jakim języku chcesz otrzymać nazwy produktów. Obsługujemy wartości: **en-US, pl-PL, uk-UA**. Gdy nie przekażesz żadnej wartości w nagłówku, to zwrócimy nazwy produktów w **domyślnym języku (en-US)**.

**Dlaczego wprowadziliśmy zmianę?**

Usługa One Fulfillment by Allegro przyciąga zagranicznych sprzedających i chcemy by nazwy produktów były dostępne w wielu językach.

-----
Using [GET /fulfillment/stock](https://developer.allegro.pl/documentation/#operation/getFulfillmentStock) you will receive a list of current products stock. [GET /fulfillment/available-products](https://developer.allegro.pl/documentation/#operation/getAvailableProducts) is a resource thanks to which you will retrieve a list of available products to prepare an Advance Ship Notice for [One Fulfillment by Allegro](https://allegro.pl/kampania/fulfillment) service.

**How has it worked so far?**

In the response to:
- [GET /fulfillment/stock](https://developer.allegro.pl/documentation/#operation/getFulfillmentStock),
- [GET /fulfillment/available-products](https://developer.allegro.pl/documentation/#operation/getAvailableProducts)

we returned basic information about the products, including their name (the “**name**” field) in language directly retrieved from the [Allegro Product Catalogue](https://developer.allegro.pl/tutorials/glosariusz-VL6Yel7BnSz#katalog-produktow).

**What have we changed?**

We have added support for the “**Accept-Language**” header so that you can decide in which language you want the product names. We support the values: **en-US, pl-PL, uk-UA**. When you do not pass any value in the header, we will return the product names in the **default language (en-US)**.

**Why have we made the change?**

The One Fulfillment by Allegro service attracts foreign sellers and we want product names to be available in multiple languages.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.