-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (46 loc) · 1.1 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script type="text/javascript" src="/node_modules/paratii-js/dist/paratii.min.js"></script>
</head>
<body>
<ul>
<li>
<a href="/upload">
Upload & Gateway Playback sample
</a>
</li>
<li>
<a href="/feed">
User Feed Carousel (Flickity) & Lightbox Playback (Venobox) sample
</a>
</li>
<li>
<a href="/contracts">
Play with contracts
</a>
</li>
</ul>
<script>
var paratii = new paratiijs.Paratii({
account: {
address: '0x9e2d04eef5b16CFfB4328Ddd027B55736407B275',
privateKey: '399b141d0cc2b863b2f514ffe53edc6afc9416d5899da4d9bd2350074c38f1c6'
},
db: {
"provider": "https://db-staging.paratii.video/api/v1/"
},
"eth": {
"provider": "https://db-chain-staging.paratii.video",
"registryAddress": "0xaa4A9f5FB33aD7E1a1bA77Ee536977Dd0eFE7034"
}
})
var video = paratii.vids.get("pm2bRPEQ48EX")
video.then(function(res) {
console.log(res)
})
</script>
</body>
</html>