Jak możemy pomóc?

El sitio está momentánemente fuera de línea.

Dodawanie ogłoszenia

Dodanie ogłoszenia nie jest równoznaczne z jego aktywacją. Ogłoszenia dodane poprzez API wymagają osobnej aktywacji. Do czasu aktywacji są widoczne w panelu dealera w zakładce "Oczekujące"

PRZYKŁADOWY CURL
c:\curl\curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 7f817a811ec0947cb865e4cc1117a3c0de1bbf43" -d ‘{"title": "Ogloszenietestowe2", "new_used": "used", "description": "Ogloszenietestowe Ogloszenietestowe Ogloszenie testowe Ogloszenie testowe open apii", "category_id": 29, "advertiser_type": "business", "city_id": 17877, "district_id": 351, "offer_seek": "offer", "contact": { "person": "TestAPI", "phone_numbers": "600000001,600000002"}, "params": {"make": "audi", "model": "a6", "version": "c7-2011", "price": {"0": "price", "1": "30000", "currency": "PLN", "gross_net": "net"}, "year": 2013, "body_type": "sedan", "power": 200, "mileage": 20000, "fuel_type": "petrol", "color": "black"}}’ http://otomoto.fixeads.com/api/open/account/adverts

lub

POST - https://otomoto.fixeads.com/api/open/account/adverts
-H "Accept: application/json"
-H "Content-Type: application/json"
-H "Authorization: Bearer 5eaa86db32a88b4d17451f002045f949ea8fef1e"
JSON
{
"title": "Ogłoszenie z wyposażeniem dodatkowym",
"new_used": "new",
"description": "OgloszenietestoweOgloszenietestoweOgloszenietestoweOgloszenietestoweopenapii",
"category_id": 29,
"advertiser_type": "business",
"city_id": 17877,
"district_id": 351,
"offer_seek": "offer",
"contact": {
"person": "TestAPI",
"phone_numbers": "600000001,600000002"
},
"params": {
"make": "audi",
"model": "a6",
"version": "c7-2011",
"price": {
"0": "price",
"1": "30000",
"currency": "PLN",
"gross_net": "net"
},
"year": 2013,
"body_type": "sedan",
"power": 200,
"mileage": 20000,
"fuel_type": "petrol",

"no_accident": "1",

"color": "black",
"features": [
"abs",
"asr",
"esp",
"alloy-wheels",
"alarm",
"central-lock",
"rear-parking-sensors",
"electronic-rearview-mirrors",
"electronic-immobiliser",
"steering-whell-comands",
"air-conditioning",
"onboard-computer",
"xenon-lights",
"front-heated-seats",
"cd",
"leather-interior",
"gps",
"fog-lights",
"cruise-control",
"assisted-steering"
]
}
}
Odpowiedź
{
"id": 2520,
"user_id": 2230575,
"status": "unpaid",
"title": "Ogłoszenie z wyposażeniem dodatkowym",
"url": "http://otomoto.fixeads.com/oferta/ogloszenie-z-wyposazeniem-dodatkowym-IDEE.html",
"created_at": "2015-07-01 18:02:10",
"valid_to": "2015-07-15 18:02:10",
"description": "OgloszenietestoweOgloszenietestoweOgloszenietestoweOgloszenietestoweopenapii",
"category_id": 29,
"region_id": 2,
"city_id": 17871,
"district_id": 351,
"municipality": "Warszawa",
"city": {
"pl": "Warszawa",
"en": "Warszawa"
},
"district": {
"pl": "Śródmieście",
"en": "Śródmieście"
},
"coordinates": {
"latitude": 52.23474,
"longitude": 21.01522,
"radius": 7,
"zoom_level": 13
},
"advertiser_type": "business",
"contact": {
"person": "TestAPI"
},
"params": {
"make": "audi",
"model": "a6",
"version": "c7-2011",
"year": 2013,
"mileage": 20000,
"fuel_type": "petrol",
"body_type": "sedan",
"color": "black",
"features": [
"abs",
"asr",
"esp",
"alloy-wheels",
"alarm",
"central-lock",
"rear-parking-sensors",
"electronic-rearview-mirrors",
"electronic-immobiliser",
"steering-whell-comands",
"air-conditioning",
"onboard-computer",
"xenon-lights",
"front-heated-seats",
"cd",
"leather-interior",
"gps",
"fog-lights",
"cruise-control",
"assisted-steering"
],
"price": {
"0": "price",
"1": 30000,
"currency": "PLN",
"gross_net": "net"
}
},
"last_update_date": "2015-07-01 18:02:10"
}