allegro / allegro/allegro-api

[NEWS] Wystaw ofertę charytatywną na Allegro / List a charity offer on Allegro

Aperta
#3,306 0 commenti 0 reazioni 1 assegnatario Rivendicata da @PrzemyslawLukanowski 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

Od **15.06.2020 wystawisz oferty charytatywne na Allegro**. Już dzisiaj wdrożyliśmy nowy zasób [GET /charity/fundraising-campaigns](https://developer.allegro.pl/documentation/#operation/searchFundraisingCampaigns), dzięki któremu wyszukasz organizacje charytatywne.

Natomiast w modelu oferty dodaliśmy nowe pole **“fundraisingCampaign”**. Aby wystawić ofertę charytatywną skorzystaj z [POST /sale/offers](https://developer.allegro.pl/documentation/#operation/createOfferUsingPOST) i w polu **“fundraisingCampaign”** przekaż identyfikator wybranej organizacji charytatywnej.

**Przykładowy request:**
```
curl -X GET \
‘https://api.allegro.pl/charity/fundraising-campaigns?limit=10&phrase=Zbieramy’ \
-H 'Accept: application/vnd.allegro.public.v1+json'
```
**Przykładowy response:**
```
{
"campaigns": [
{
"id": "4ed5aebc-a916-4144-b9e9-45f9408a9fe7",
"name": "Zbieramy na karmę dla zwierząt ze schroniska",
"organization": {
"name": "Platforma Charytatywna"
}
}
]
}
```

-----
**On June 15th, 2020 you will be able to list charity offers on Allegro**. Today we have introduced a new resource [GET /charity/fundraising-campaigns](https://developer.allegro.pl/documentation/#operation/searchFundraisingCampaigns) which allows you to browse charity organizations.

Additionally, we have added a new field **"fundraisingCampaign"** in offer model.
If you want to list a charity offer, use [POST /sale/offers](https://developer.allegro.pl/documentation/#operation/createOfferUsingPOST) and in the field **“fundraisingCampaign”** provide an ID of a chosen charity organization.

**Sample request:**
```
curl -X GET \
‘https://api.allegro.pl/charity/fundraising-campaigns?limit=10&phrase=Zbieramy’ \
-H 'Accept: application/vnd.allegro.public.v1+json'
```
**Sample response:**
```
{
"campaigns": [
{
"id": "4ed5aebc-a916-4144-b9e9-45f9408a9fe7",
"name": "Zbieramy na karmę dla zwierząt ze schroniska",
"organization": {
"name": "Platforma Charytatywna"
}
}
]
}
```

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.