开发者社区> 问答> 正文

如何获取PCDN的API接口用户终端token



描述


获取终端Token列表

请求参数

名称类型是否必须描述
ActionString系统参数,取值: GetTokenList


返回参数

名称类型描述
TokenListToken[]返回Token信息列表

数据类型Token
名称类型描述
UpdatedAtString更新时间
PlatformTypeString终端code
ResourceIdStringResourceID
TokenStringToken值
PlatformNameString终端名称
ClientIdString用户ClientID
CreatedAtString创建时间


示例


请求示例 http://pcdn.aliyuncs.com/?Action=GetTokenList&Timestamp=2017-05-31T13%3A11%3A28Z&<公共参数>

返回示例JSON格式: {
    "RequestId": "5CED561E-A4E3-4842-8BB6-700BE2AE7784",
    "TokenList": {
        "Token": [
            {
                "UpdatedAt": "2017-05-16 20:16:20",
                "PlatformType": "02",
                "ResourceId": "1a5wb7s",
                "Token": "6000170200591aed94fc62fb5e0166b64d199b86d1e0128fd0",
                "PlatformName": "OTT",
                "ClientId": "200000",
                "CreatedAt": "2017-05-16 20:16:20"
            },
            {
                "UpdatedAt": "2017-05-16 20:16:20",
                "PlatformType": "00",
                "ResourceId": "8zs9op",
                "Token": "6000170000591aed949d0f54a343f1a4233c1e7d1c5ca816be",
                "PlatformName": "PC",
                "ClientId": "200000",
                "CreatedAt": "2017-05-16 20:16:20"
            },
            {
                "UpdatedAt": "2017-05-16 20:16:20",
                "PlatformType": "01",
                "ResourceId": "blocm6",
                "Token": "6000170100591aed94b45ed32785cc74f5a861ddfcb8b7c841",
                "PlatformName": "Android",
                "ClientId": "200000",
                "CreatedAt": "2017-05-16 20:16:20"
            },
            {
                "UpdatedAt": "2017-05-16 20:16:20",
                "PlatformType": "05",
                "ResourceId": "1i85ijq",
                "Token": "6000170500591aed949b2e40bf306fdb5c7081349621e412ee",
                "PlatformName": "iOS",
                "ClientId": "200000",
                "CreatedAt": "2017-05-16 20:16:20"
            }
        ]
    },
    "Code": 0
}


XML格式 <?xml version="1.0" encoding="UTF-8" ?>
    <RequestId>5CED561E-A4E3-4842-8BB6-700BE2AE7784</RequestId>
    <TokenList>
        <Token>
            <UpdatedAt>2017-05-16 20:16:20</UpdatedAt>
            <PlatformType>02</PlatformType>
            <ResourceId>1a5wb7s</ResourceId>
            <Token>6000170200591aed94fc62fb5e0166b64d199b86d1e0128fd0</Token>
            <PlatformName>OTT</PlatformName>
            <ClientId>200000</ClientId>
            <CreatedAt>2017-05-16 20:16:20</CreatedAt>
        </Token>
        <Token>
            <UpdatedAt>2017-05-16 20:16:20</UpdatedAt>
            <PlatformType>00</PlatformType>
            <ResourceId>8zs9op</ResourceId>
            <Token>6000170000591aed949d0f54a343f1a4233c1e7d1c5ca816be</Token>
            <PlatformName>PC</PlatformName>
            <ClientId>200000</ClientId>
            <CreatedAt>2017-05-16 20:16:20</CreatedAt>
        </Token>
        <Token>
            <UpdatedAt>2017-05-16 20:16:20</UpdatedAt>
            <PlatformType>01</PlatformType>
            <ResourceId>blocm6</ResourceId>
            <Token>6000170100591aed94b45ed32785cc74f5a861ddfcb8b7c841</Token>
            <PlatformName>Android</PlatformName>
            <ClientId>200000</ClientId>
            <CreatedAt>2017-05-16 20:16:20</CreatedAt>
        </Token>
        <Token>
            <UpdatedAt>2017-05-16 20:16:20</UpdatedAt>
            <PlatformType>05</PlatformType>
            <ResourceId>1i85ijq</ResourceId>
            <Token>6000170500591aed949b2e40bf306fdb5c7081349621e412ee</Token>
            <PlatformName>iOS</PlatformName>
            <ClientId>200000</ClientId>
            <CreatedAt>2017-05-16 20:16:20</CreatedAt>
        </Token>
    </TokenList>
    <Code>0</Code>

展开
收起
云栖大讲堂 2017-10-27 17:01:12 3685 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
Spring Boot2.0实战Redis分布式缓存 立即下载
CUDA MATH API 立即下载
API PLAYBOOK 立即下载