-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
147 lines (120 loc) · 4.53 KB
/
index.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!doctype html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Reamaze PHP SDK Examples</title>
<script type="text/javascript">
<!--
function toggleVisibility(id) {
var e = document.getElementById(id);
if (e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
//-->
</script>
</head>
<body>
<h1>Reamaze php SDK Examples</h1>
<h2>Articles [ @todo ]</h2>
<?php foreach ([
'retrieve' => 'Retrieving Articles',
'get' => 'Get Article',
'create' => 'Creating Articles',
'update' => 'Updating Articles',
] as $key => $title) { ?>
<h3>
<?= $title ?>
<a href="#" onclick="toggleVisibility('articles-<?= $key ?>');">source</a> |
<a href="./articles/<?= $key ?>.php" target="_blank">demo</a>
</h3>
<div id="articles-<?= $key ?>" style="display: none;">
<?php $file = file_get_contents('./articles/' . $key . '.php');
highlight_string($file); ?>
</div>
<?php } ?>
<h2>Contacts</h2>
<?php foreach ([
'retrieve' => 'Retrieving Contacts',
'create' => 'Create Contacts',
'update' => 'Update Contacts',
'getIdentities' => 'Get Contact Identities',
'createIdentities' => 'Create Identities',
] as $key => $title) { ?>
<h3>
<?= $title ?>
<a href="#" onclick="toggleVisibility('contacts-<?= $key ?>');">source</a> |
<a href="./contacts/<?= $key ?>.php" target="_blank">demo</a>
</h3>
<div id="contacts-<?= $key ?>" style="display: none;">
<?php $file = file_get_contents('./contacts/' . $key . '.php');
highlight_string($file); ?>
</div>
<?php } ?>
<h2>Conversations</h2>
<?php foreach ([
'create' => 'Create Conversation',
'get' => 'Get Conversation',
'retrieve' => 'Retrieve Conversation',
] as $key => $title) { ?>
<h3>
<?= $title ?>
<a href="#" onclick="toggleVisibility('conversations-<?= $key ?>');">source</a> |
<a href="./conversations/<?= $key ?>.php" target="_blank">demo</a>
</h3>
<div id="conversations-<?= $key ?>" style="display: none;">
<?php $file = file_get_contents('./conversations/' . $key . '.php');
highlight_string($file); ?>
</div>
<?php } ?>
<h2>Messages</h2>
<?php foreach (['create' => 'Create Message', 'retrieve' => 'Retrieve Message'] as $key => $title) { ?>
<h3>
<?= $title ?>
<a href="#" onclick="toggleVisibility('messages-<?= $key ?>');">source</a> |
<a href="./messages/<?= $key ?>.php" target="_blank">demo</a>
</h3>
<div id="messages-<?= $key ?>" style="display: none;">
<?php $file = file_get_contents('./messages/' . $key . '.php');
highlight_string($file); ?>
</div>
<?php } ?>
<h2>Channels</h2>
<?php foreach (['retrieve' => 'Retrieving Channels', 'get' => 'Get Channel'] as $key => $title) { ?>
<h3>
<?= $title ?>
<a href="#" onclick="toggleVisibility('channels-<?= $key ?>');">source</a> |
<a href="./channels/<?= $key ?>.php" target="_blank">demo</a>
</h3>
<div id="channels-<?= $key ?>" style="display: none;">
<?php $file = file_get_contents('./channels/' . $key . '.php');
highlight_string($file); ?>
</div>
<?php } ?>
<h2>Staff</h2>
<?php foreach (['retrieve' => 'Retrieving Staff', 'create' => 'Create Staff User'] as $key => $title) { ?>
<h3>
<?= $title ?>
<a href="#" onclick="toggleVisibility('channels-<?= $key ?>');">source</a> |
<a href="./staff/<?= $key ?>.php" target="_blank">demo</a>
</h3>
<div id="staff-<?= $key ?>" style="display: none;">
<?php $file = file_get_contents('./staff/' . $key . '.php');
highlight_string($file); ?>
</div>
<?php } ?>
<h2>Reports</h2>
<?php foreach (['get' => 'Reports'] as $key => $title) { ?>
<h3>
<?= $title ?>
<a href="#" onclick="toggleVisibility('reports-<?= $key ?>');">source</a> |
<a href="./reports/<?= $key ?>.php" target="_blank">demo</a>
</h3>
<div id="staff-<?= $key ?>" style="display: none;">
<?php $file = file_get_contents('./reports/' . $key . '.php');
highlight_string($file); ?>
</div>
<?php } ?>
</body>
</html>