-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZiggeo.php
81 lines (61 loc) · 1.43 KB
/
Ziggeo.php
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
spl_autoload_register(function ($class) {
$fname = dirname(__FILE__) . "/classes/" . $class . '.php';
if (file_exists($fname))
include $fname;
});
Class Ziggeo {
private $token;
private $private_key;
private $encryption_key;
function __construct($token, $private_key, $encryption_key = NULL) {
$this->token = $token;
$this->private_key = $private_key;
$this->encryption_key = $encryption_key;
}
function token() {
return $this->token;
}
function private_key() {
return $this->private_key;
}
function encryption_key() {
return $this->encryption_key;
}
private $config;
function config() {
if (!@$this->config)
$this->config = new ZiggeoConfig();
return $this->config;
}
private $connect;
function connect() {
if (!@$this->connect)
$this->connect = new ZiggeoConnect($this);
return $this->connect;
}
private $videos = NULL;
function videos() {
if (!@$this->videos)
$this->videos = new ZiggeoVideos($this);
return $this->videos;
}
private $streams = NULL;
function streams() {
if (!@$this->streams)
$this->streams = new ZiggeoStreams($this);
return $this->streams;
}
private $authtokens = NULL;
function authtokens() {
if (!@$this->authtokens)
$this->authtokens = new ZiggeoAuthtokens($this);
return $this->authtokens;
}
private $auth = NULL;
function auth() {
if (!@$this->auth)
$this->auth = new ZiggeoAuth($this);
return $this->auth;
}
}