调用GetTokenList获取终端Token列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String GetTokenList

系统规定参数,取值:GetTokenList

Version String 2017-04-11

版本号。

AccessKeyId String yourAccessKeyId

AccessKeyId。

返回数据

名称 类型 示例值 描述
Code Integer 0

业务码,成功返回0。

RequestId String 5CED561E-A4E3-4842-8BB6-700BE2AE7784

请求ID。

TokenList

返回Token信息列表。

Token

返回Token信息列表。

ClientId String 200000

用户ClientID。

CreatedAt String 2017-05-16 20:16:20

创建时间。

PlatformName String OTT

终端名称。

PlatformType String 02

终端code。

ResourceId String 6y23ph

终端资源ID。

Token String 6000170200591aed94fc62fb5e0166b64d199b86d1e0128fd0

Token值。

UpdatedAt String 2017-05-16 20:16:20

更新时间。

示例

请求示例

http://pcdn.aliyuncs.com/?Action=GetTokenList
&Version=2017-04-11
&<公共参数>

正常返回示例

XML 格式

<GetTokenListResponse>    
      <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>
</GetTokenListResponse>

JSON 格式

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

错误码

访问错误中心查看更多错误码。