Bu metod ile PttAVM kategori ağacı bilgilerini alabilirsiniz.
https://integration-api.pttavm.com/api/v1/categories/mainPOSTApi-Key zorunluaccess-token zorunluContent-Type: application/jsoncurl https://integration-api.pttavm.com/ /api/v1/categories/category-tree \
--header 'Api-Key: ' \
--header 'Access-Token: '
{
"success": true,
"category_tree": [
{
"id": null,
"name": null,
"parent_id": null,
"updated_at": null,
"children": []
}
],
"error": {
"error_code": null,
"error_message": null
}
}
| Parametre | Tür | Açıklama |
|---|---|---|
| success | boolean | İstek sonucunu ifade eder. True = Başarılı , Failed= Başarısız. |
| id | string | Kategori id bilgisini içerir. |
| name | string | Kategori adını ifade eder. |
| parent_id | string | Bir kategorinin üst kategori bilgisini ifade eder. |
| updated_at | DateTime | Kategorinin son güncellenme tarihini ifade eder. Örnek güncelleme tarihi formatı 2023-06-13T15:24:53 |
| children | **array | Alt kategori bilgilerini ifade eder. |