Pobierz własne ogłoszenia
GET
/api/v1/listingsStrona ogłoszeń właściciela klucza.
Wyniki obejmują oferty właściciela klucza. Gdy nextCursor ma wartość, przekaż ją w parametrze cursor następnego żądania.
Wymagany zakres listings:read
Parametry
| Nazwa | Miejsce | Typ | Wymagany | Opis |
|---|---|---|---|---|
limit | query | integer | Nie | minimum 1 · maksimum 50 · domyślnie 25 |
cursor | query | string | Nie | maks. znaków 250 |
Odpowiedzi
200 Strona ogłoszeń właściciela klucza.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
items | Listing[] | Tak | — |
nextCursor | string | null | Tak | — |
JSON Schema
{
"type": "object",
"required": [
"items",
"nextCursor"
],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Listing"
}
},
"nextCursor": {
"type": [
"string",
"null"
]
}
}
}Pozostałe błędy API Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}401 Brak prawidłowego klucza API.403 Brak zakresu wymaganego przez operację lub żądanie bez HTTPS na produkcji.429 Przekroczono limit zapytań. Sprawdź Retry-After.503 Dostęp jest zamknięty lub usługa jest chwilowo niedostępna. Sprawdź code.Powiązane schematy
Listing
{
"type": "object",
"required": [
"id",
"title",
"price",
"category",
"createdAt",
"updatedAt",
"expiresAt",
"status",
"publicationState",
"publicPath"
],
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"price": {
"type": "integer"
},
"category": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"expiresAt": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"status": {
"enum": [
"draft",
"payment_required",
"active",
"expired",
"sold"
]
},
"publicationState": {
"enum": [
"public",
"pending",
"hidden"
]
},
"publicPath": {
"type": [
"string",
"null"
]
},
"paymentPath": {
"type": "string"
}
}
}