当有多个本地化属性时,任何人都可以帮助我了解主动事件 API 中本地化属性数组的结构吗?
Can anyone help me with the structure of array of localized attributes in the proactive events API when there are more than one localized attributes?
我一直在玩主动事件,但被本地化属性卡住了。所以我使用的是媒体内容可用架构,它有两个本地化属性,但我找不到关于如何同时使用其中两个的示例。任何想法?所以基本上,这是可行的:
{
"timestamp": "2019-01-25T08:41:01.00Z",
"referenceId": "orangfdetango2221800f44-436a-4c47-8d9f-e14356bb010c",
"expiryTime": "2019-01-26T08:20:01.00Z",
"event": {
"name": "AMAZON.MediaContent.Available",
"payload": {
"availability": {
"startTime": "2019-01-23T21:00:00Z",
"method":"DROP"
},
"content": {
"name": "localizedattribute:contentName",
"contentType":"EPISODE"
}
}
},
"localizedAttributes": [
{
"locale": "en-US",
"contentName": "Who Wrote the Bible? - 01/13/2019"
}
],
"relevantAudience": {
"type": "Multicast",
"payload": {}
}
}
但不是这个,因为它有两个本地化属性:
{
"timestamp": "2019-01-25T08:41:01.00Z",
"referenceId": "orangfdetango2221800f44-436a-4c47-8d9f-e14356bb010c",
"expiryTime": "2019-01-26T08:20:01.00Z",
"event": {
"name": "AMAZON.MediaContent.Available",
"payload": {
"availability": {
"startTime": "2019-01-25T21:00:00Z",
"provider": {
"name": "localizedattribute:providerName"
},
"method":"STREAM"
},
"content": {
"name": "localizedattribute:contentName",
"contentType":"EPISODE"
}
}
},
"localizedAttributes": [
{
"locale": "en-US",
"providerName": "Lindsborg Covenant Church"
},
{
"locale": "en-US",
"contentName": "Who Wrote the Bible? - 01/13/2019"
}
],
"relevantAudience": {
"type": "Multicast",
"payload": {}
}
}
显然,这是一个简单的修复,尽管我在任何文档中都找不到它。
需要做的是将本地化属性更改为:
"localizedAttributes": [
{
"locale": "en-US",
"providerName": "Lindsborg Covenant Church",
"contentName": "Who Wrote the Bible? - 01/13/2019"
}
],
我一直在玩主动事件,但被本地化属性卡住了。所以我使用的是媒体内容可用架构,它有两个本地化属性,但我找不到关于如何同时使用其中两个的示例。任何想法?所以基本上,这是可行的:
{
"timestamp": "2019-01-25T08:41:01.00Z",
"referenceId": "orangfdetango2221800f44-436a-4c47-8d9f-e14356bb010c",
"expiryTime": "2019-01-26T08:20:01.00Z",
"event": {
"name": "AMAZON.MediaContent.Available",
"payload": {
"availability": {
"startTime": "2019-01-23T21:00:00Z",
"method":"DROP"
},
"content": {
"name": "localizedattribute:contentName",
"contentType":"EPISODE"
}
}
},
"localizedAttributes": [
{
"locale": "en-US",
"contentName": "Who Wrote the Bible? - 01/13/2019"
}
],
"relevantAudience": {
"type": "Multicast",
"payload": {}
}
}
但不是这个,因为它有两个本地化属性:
{
"timestamp": "2019-01-25T08:41:01.00Z",
"referenceId": "orangfdetango2221800f44-436a-4c47-8d9f-e14356bb010c",
"expiryTime": "2019-01-26T08:20:01.00Z",
"event": {
"name": "AMAZON.MediaContent.Available",
"payload": {
"availability": {
"startTime": "2019-01-25T21:00:00Z",
"provider": {
"name": "localizedattribute:providerName"
},
"method":"STREAM"
},
"content": {
"name": "localizedattribute:contentName",
"contentType":"EPISODE"
}
}
},
"localizedAttributes": [
{
"locale": "en-US",
"providerName": "Lindsborg Covenant Church"
},
{
"locale": "en-US",
"contentName": "Who Wrote the Bible? - 01/13/2019"
}
],
"relevantAudience": {
"type": "Multicast",
"payload": {}
}
}
显然,这是一个简单的修复,尽管我在任何文档中都找不到它。
需要做的是将本地化属性更改为:
"localizedAttributes": [
{
"locale": "en-US",
"providerName": "Lindsborg Covenant Church",
"contentName": "Who Wrote the Bible? - 01/13/2019"
}
],