edit-icon download-icon

ListAllCategory

Last Updated: Apr 19, 2018

Description

The ListAllCategory API retrieves a category list.

Request parameters

Parameter Type Required or not Description
Action String Yes API of the action, system required parameter. Set this parameter to ListAllCategory.

Return parameters

Name Type Description
Category Category[] Category information

Example

Request example

  1. http://mts.cn-hangzhou.aliyuncs.com?SAction=ListAllCategory&<public parameter>

Return example

XML

  1. <ListAllCategoryResponse>
  2. <RequestId>A7327D37-65F2-45BC-BD97-E5522BE3E5B9</RequestId>
  3. <CategoryList>
  4. <Category>
  5. <ParentId>-1</ParentId>
  6. <CateId>3659747</CateId>
  7. <CateName>Adult education</CateName>
  8. <Level>0</Level>
  9. </Category>
  10. <Category>
  11. <ParentId>-1</ParentId>
  12. <CateId>4154805</CateId>
  13. <CateName>this is a new cate</CateName>
  14. <Level>0</Level>
  15. </Category>
  16. <Category>
  17. <ParentId>-1</ParentId>
  18. <CateId>7503631</CateId>
  19. <CateName>Not suitable for children</CateName>
  20. <Level>0</Level>
  21. </Category>
  22. <Category>
  23. <ParentId>3659747</ParentId>
  24. <CateId>8102754</CateId>
  25. <CateName>aaa</CateName>
  26. <Level>1</Level>
  27. </Category>
  28. </CategoryList>
  29. </ListAllCategoryResponse>

JSON

  1. {
  2. "RequestId": "533A9B93-7CB4-4712-9065-A8A77E34F333",
  3. "CategoryList": {
  4. "Category": [
  5. {
  6. "ParentId": -1,
  7. "CateId": 3659747,
  8. "CateName": "Adult education",
  9. "Level": 0
  10. },
  11. {
  12. "ParentId": -1,
  13. "CateId": 4154805,
  14. "CateName": "this is a new cate",
  15. "Level": 0
  16. },
  17. {
  18. "ParentId": -1,
  19. "CateId": 7503631,
  20. "CateName": "Not suitable for children",
  21. "Level": 0
  22. },
  23. {
  24. "ParentId": 3659747,
  25. "CateId": 8102754,
  26. "CateName": "aaa",
  27. "Level": 1
  28. }
  29. ]
  30. }
  31. }
Thank you! We've received your feedback.