# TVOD
Transactional Video On Demand
Pay once for a Product to purchase a persistent or rental stream and/or download access.
# List TVOD Products
query TVODProducts {
cms {
products(query: "type:TVOD") {
items {
id
name
extension {
... on ProductTVOD {
accessModes {
id
priceFormat
quality
mode
type
duration
}
}
}
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"data": {
"cms": {
"products": {
"items": [
{
"id": "1",
"name": "The line",
"extension": {
"accessModes": [
{
"id": "64",
"priceFormat": null,
"quality": "ALL",
"mode": "ALL",
"type": "SUBSCRIPTION",
"duration": null
},
{
"id": "2",
"priceFormat": "€3.50",
"quality": "ALL",
"mode": "STREAMING",
"type": "RENT",
"duration": 31
},
{
"id": "3",
"priceFormat": "€4.33",
"quality": "ALL",
"mode": "DOWNLOAD",
"type": "RENT",
"duration": 31
},
{
"id": "1",
"priceFormat": "€6.00",
"quality": "ALL",
"mode": "ALL",
"type": "RENT",
"duration": 31
}
]
}
},
//...
]
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Active TVOD Accesses
To retrieve the user's active TVOD accesses, use user.accesses
and query for type:TVOD
.
query ActiveTVODAccesses {
user {
accesses (query: "type:TVOD") {
items {
id
dateAdd
dateExp
type
product {
id
name
}
accessMode {
... on TVODAccessMode {
id
priceFormat
quality
mode
type
duration
}
}
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Product Accessibility
Active access to a specific Product can be checked using the following query:
query GetProductAccessibility {
cms {
products(includeIds:[1]) {
items {
id
name
extension {
... on ProductTVOD {
user {
accessible # true if the user has at least one valid access for the product
accesses { # List of active accesses for this product
items {
id
dateExp
type
}
}
}
}
}
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"data": {
"cms": {
"products": {
"items": [
{
"id": "1",
"name": "The line",
"extension": {
"user": {
"accessible": true,
"accesses": {
"items": [
{
"id": "55",
"dateExp": "2020-12-27T22:59:59.000Z",
"type": "SVOD"
}
]
}
}
}
}
]
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28