分类 API 方法

用于视图Audience Manager常用分类的方法。 此可选分类方案将特征组织到行业标准类别中。

注意

不能使用这些方法创建新的分类类别或分类特征。 要对特征进行分类,请使用特征创建或更新方法指定相应的categoryId

返回特定分类

GET方法,返回有关指定分类类别的详细信息。

请求

GET https://api.demdex.com/v1/taxonomies/0/<categoryId>

响应

成功的响应返回200 OK和指定ID的类别。 如果ID不存在,则不成功的请求将返回404 No Content

{
    "crUID": 158,
    "name": "Arts & Entertainment",
    "upUID": 158,
    "description": "Arts & Entertainment",
    "categoryID": 1,
    "parentCategoryID": 0
}

返回所有分类类别

一种GET方法,它返回数组中顶级类别的列表。

请求

GET https://api.demdex.com/v1/taxonomies/0/

响应

短时间截断。

[
    {
        "crUID": 158,
        "name": "Arts & Entertainment",
        "upUID": 158,
        "description": "Arts & Entertainment",
        "categoryID": 1,
        "parentCategoryID": 0
    },
    {
        "crUID": 158,
        "name": "Automotive",
        "upUID": 158,
        "description": "Automotive",
        "categoryID": 2,
        "parentCategoryID": 0
    },
    {
        "crUID": 158,
        "name": "Business",
        "upUID": 158,
        "description": "Business",
        "categoryID": 3,
        "parentCategoryID": 0
    }
]

返回分类子类别

GET方法,它为数组中指定的父类别返回子类别。

请求

GET https://api.demdex.com/v1/taxonomies/0/<categoryId>/childCategories/

响应

成功的响应返回200 OK和指定ID的类别。 如果ID不存在,则不成功的请求将返回404 No Content。 短时间截断。

[
    {
        "crUID": 158,
        "name": "Books & Literature",
        "upUID": 158,
        "description": "Books & Literature",
        "categoryID": 25,
        "parentCategoryID": 1
    },
    {
        "crUID": 158,
        "name": "Celebrity Fan/Gossip",
        "upUID": 158,
        "description": "Celebrity Fan/Gossip",
        "categoryID": 49,
        "parentCategoryID": 1
    },
    {
        "crUID": 158,
        "name": "Fine Art",
        "upUID": 158,
        "description": "Fine Art",
        "categoryID": 72,
        "parentCategoryID": 1
    }
]

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now