-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.php
executable file
·417 lines (405 loc) · 54.4 KB
/
help.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
<?php
/**
* Chronolabs Cooperative Entitisms Repository Services REST API
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @copyright Chronolabs Cooperative http://syd.au.snails.email
* @license ACADEMIC APL 2 (https://sourceforge.net/u/chronolabscoop/wiki/Academic%20Public%20License%2C%20version%202.0/)
* @license GNU GPL 3 (http://www.gnu.org/licenses/gpl.html)
* @package entities-api
* @since 2.2.1
* @author Dr. Simon Antony Roberts <simon@snails.email>
* @version 2.2.8
* @description A REST API for the storage and management of entities + persons + beingness collaterated!
* @link http://internetfounder.wordpress.com
* @link https://github.com/Chronolabs-Cooperative/Emails-API-PHP
* @link https://sourceforge.net/p/chronolabs-cooperative
* @link https://facebook.com/ChronolabsCoop
* @link https://twitter.com/ChronolabsCoop
*/
$emailmd5 = md5(NULL);
$width = mt_rand(280, 750);
$height = mt_rand(280, 750);
$pixels = mt_rand(880, 2750);
$nodes = getExampleNodes();
$random = getExampleNodes();
$entities = getExampleFingerprint();
$entitiesmd5 = $entities['entity-id'];
$emailmd5 = (!isset($entities['email-address-three-id']) && !empty($entities['email-address-three-id'])?(!isset($entities['email-address-two-id']) && !empty($entities['email-address-two-id'])?(!isset($entities['email-address-one-id']) && !empty($entities['email-address-one-id'])?md5(NULL):$entities['email-address-one-id']):$entities['email-address-two-id']):$entities['email-address-three-id']);
$entitieshash = $entities['hash-referer'];
if ($emailmd5 != md5(NULL) && !empty($emailmd5))
{
$sql = "SELECT * FROM `" . $GLOBALS['APIDB']->prefix('emails') . "` WHERE `email-id` LIKE '%s'";
$results = $GLOBALS['APIDB']->queryF($sql = sprintf($sql, $emailmd5));
if (!$emailrec = $GLOBALS['APIDB']->fetchArray($results))
trigger_error('Database Empty Recordset for Example Failed: ' . $sql);
$emailmd5 = md5($emailrec['email']);
$email = $emailrec['email'];
} else {
$sql = "SELECT * FROM `" . $GLOBALS['APIDB']->prefix('emails') . "` WHERE `email-id` NOT LIKE '' ORDER BY RAND() LIMIT 1";
$results = $GLOBALS['APIDB']->queryF($sql);
if (!$emailrec = $GLOBALS['APIDB']->fetchArray($results))
trigger_error('Database Empty Recordset for Example Failed: ' . $sql);
$emailmd5 = md5($emailrec['email']);
$email = $emailrec['email'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta property="og:title" content="<?php echo API_VERSION; ?>"/>
<meta property="og:type" content="api<?php echo API_TYPE; ?>"/>
<meta property="og:image" content="<?php echo API_URL; ?>/assets/images/logo_500x500.png"/>
<meta property="og:url" content="<?php echo (isset($_SERVER["HTTPS"])?"https://":"http://").$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; ?>" />
<meta property="og:site_name" content="<?php echo API_VERSION; ?> - <?php echo API_LICENSE_COMPANY; ?>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="rating" content="general" />
<meta http-equiv="author" content="wishcraft@users.sourceforge.net" />
<meta http-equiv="copyright" content="<?php echo API_LICENSE_COMPANY; ?> © <?php echo date("Y"); ?>" />
<meta http-equiv="generator" content="Chronolabs Cooperative (<?php echo $place['iso3']; ?>)" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo API_VERSION; ?> || <?php echo API_LICENSE_COMPANY; ?></title>
<!-- AddThis Smart Layers BEGIN -->
<!-- Go to http://www.addthis.com/get/smart-layers to customize -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50f9a1c208996c1d"></script>
<script type="text/javascript">
addthis.layers({
'theme' : 'transparent',
'share' : {
'position' : 'right',
'numPreferredServices' : 6
},
'follow' : {
'services' : [
{'service': 'facebook', 'id': 'Chronolabs'},
{'service': 'twitter', 'id': 'JohnRingwould'},
{'service': 'twitter', 'id': 'ChronolabsCoop'},
{'service': 'twitter', 'id': 'Cipherhouse'},
{'service': 'twitter', 'id': 'OpenRend'},
]
},
'whatsnext' : {},
'recommended' : {
'title': 'Recommended for you:'
}
});
</script>
<!-- AddThis Smart Layers END -->
<link rel="stylesheet" href="<?php echo API_URL; ?>/assets/css/style.css" type="text/css" />
<!-- Custom Fonts -->
<link href="<?php echo API_URL; ?>/assets/media/Labtop/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/Labtop Bold/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/Labtop Bold Italic/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/Labtop Italic/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/Labtop Superwide Boldish/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/Labtop Thin/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/Labtop Unicase/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/LHF Matthews Thin/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/Life BT Bold/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/Life BT Bold Italic/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/Prestige Elite/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/Prestige Elite Bold/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo API_URL; ?>/assets/media/Prestige Elite Normal/style.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="<?php echo API_URL; ?>/assets/css/gradients.php" type="text/css" />
<link rel="stylesheet" href="<?php echo API_URL; ?>/assets/css/shadowing.php" type="text/css" />
</head>
<body>
<div class="main">
<img style="float: right; margin: 11px; width: auto; height: auto; clear: none;" src="<?php echo API_URL; ?>/assets/images/logo_350x350.png" />
<h1><?php echo API_VERSION; ?> -- <?php echo API_LICENSE_COMPANY; ?></h1>
<p>This is an API Service for providing entities, individuals, companies and people to your application or website. It provides the the entities through either fingerprinting checksums for the entities or keywords from the nodes list when access the API inclusing JSON, XML, Serialisation, HTML, RAW, CSS and raw file outputs.</p>
<h2>Code API Documentation</h2>
<p>You can find the phpDocumentor code API documentation at the following path :: <a href="<?php echo API_URL; ?>/docs/" target="_blank"><?php echo API_URL; ?>/docs/</a>. These should outline the source code core functions and classes for the API to function!</p>
<h2>AVATAR Document Output</h2>
<p>This is done with the <em>view.api</em> extension at the end of the url, this is for the functions for entities on the API!</p>
<blockquote>
<font class="help-title-text">This is for a png image output for a view of the entities in the fingerprint listed in the URI and will produce it small (80x80) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/avatar.png" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the entities in the fingerprint listed in the URI and will produce it small (80x80) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/avatar.jpg" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the entities in the fingerprint listed in the URI and will produce it small (80x80) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/avatar.gif" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the entities in the fingerprint listed in the URI and will produce it small (80x80) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/small/avatar.png" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/small/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the entities in the fingerprint listed in the URI and will produce it small (80x80) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/small/avatar.jpg" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/small/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the entities in the fingerprint listed in the URI and will produce it small (80x80) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/small/avatar.gif" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/small/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the entities in the fingerprint listed in the URI and will produce it small (80x80) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/medium/avatar.png" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/medium/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the entities in the fingerprint listed in the URI and will produce it medium (160x160) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/medium/avatar.jpg" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/medium/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the entities in the fingerprint listed in the URI and will produce it medium (160x160) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/medium/avatar.gif" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/medium/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the entities in the fingerprint listed in the URI and will produce it large (200x200) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/large/avatar.png" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/large/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the entities in the fingerprint listed in the URI and will produce it large (200x200) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/large/avatar.jpg" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/large/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the entities in the fingerprint listed in the URI and will produce it large (200x200) avatar!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/large/avatar.gif" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $entitiesmd5; ?>/large/avatar.gif</a></font><br /><br />
<?php if ($emailmd5 != md5(NULL))
{?>
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/avatar.png" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/avatar.jpg" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/avatar.gif" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/small/avatar.png" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/small/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/small/avatar.jpg" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/small/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/small/avatar.gif" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/small/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it large (200x200) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/medium/avatar.png" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/medium/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it large (200x200) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/medium/avatar.jpg" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/medium/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it medium (160x160) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/medium/avatar.gif" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/medium/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it large (200x200) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/large/avatar.png" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/large/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it large (200x200) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/large/avatar.jpg" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/large/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produce it large (200x200) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/large/avatar.gif" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/large/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $pixels; ?>x<?php echo $pixels; ?> pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $pixels; ?>/avatar.png" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $pixels; ?>/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $pixels; ?>x<?php echo $pixels; ?> pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $pixels; ?>/avatar.jpg" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $pixels; ?>/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $pixels; ?>x<?php echo $pixels; ?> pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $pixels; ?>/avatar.gif" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $pixels; ?>/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $width; ?>x<?php echo $height; ?> width by height in pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.png" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $width; ?>x<?php echo $height; ?> width by height in pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.jpg" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the <strong><em>md5</em>("<em><?php echo $email; ?></em>");</strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $width; ?>x<?php echo $height; ?> width by height in pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.gif" target="_blank"><?php echo API_URL; ?>/v2/<?php echo $emailmd5; ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.gif</a></font><br /><br />
<?php } ?>
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/avatar.png" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/avatar.jpg" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/avatar.gif" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/small/avatar.png" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/small/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/small/avatar.jpg" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/small/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it small (80x80) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/small/avatar.gif" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/small/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it large (200x200) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/medium/avatar.png" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/medium/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it large (200x200) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/medium/avatar.jpg" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/medium/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it medium (160x160) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/medium/avatar.gif" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/medium/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it large (200x200) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/large/avatar.png" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/large/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it large (200x200) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/large/avatar.jpg" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/large/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produce it large (200x200) avatar; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/large/avatar.gif" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/large/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $pixels; ?>x<?php echo $pixels; ?> pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $pixels; ?>/avatar.png" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $pixels; ?>/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $pixels; ?>x<?php echo $pixels; ?> pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $pixels; ?>/avatar.jpg" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $pixels; ?>/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $pixels; ?>x<?php echo $pixels; ?> pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $pixels; ?>/avatar.gif" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $pixels; ?>/avatar.gif</a></font><br /><br />
<font class="help-title-text">This is for a png image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $width; ?>x<?php echo $height; ?> width by height in pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.png" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.png</a></font><br /><br />
<font class="help-title-text">This is for a jpeg image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $width; ?>x<?php echo $height; ?> width by height in pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.jpg" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.jpg</a></font><br /><br />
<font class="help-title-text">This is for a gif image output for a view of the of the entities avatar using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI and will produces resizes maximum size fitted to scale of <?php echo $width; ?>x<?php echo $height; ?> width by height in pixels; this is the entities avatar which can be different from email when uploaded!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.gif" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/<?php echo $width; ?>x<?php echo $height; ?>/avatar.gif</a></font><br /><br />
</blockquote>
<h2>VIEW Document Output</h2>
<p>This is done with the <em>view.api</em> extension at the end of the url, this is for the functions for entities on the API!</p>
<blockquote>
<font class="help-title-text">This is for a html output for a view of the entities in the fingerprint listed in the URI!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entity/<?php echo $entitiesmd5; ?>/view.api" target="_blank"><?php echo API_URL; ?>/v2/entity/<?php echo $entitiesmd5; ?>/view.api</a></font><br /><br />
<font class="help-title-text">This is for a html output for a view of the entities in the referee short hash listed in the URI!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entity/<?php echo $entitieshash; ?>/view.api" target="_blank"><?php echo API_URL; ?>/v2/entity/<?php echo $entitiesmd5; ?>/view.api</a></font><br /><br />
<font class="help-title-text">This is for a html output for a view of the entities using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/view.api" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/view.api</a></font><br /><br />
<font class="help-title-text">This is for a html output for a view of the entities in using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/view.api" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/view.api</a></font><br /><br />
</blockquote>
<h2>EDIT Document Output</h2>
<p>This is done with the <em>edit.api</em> extension at the end of the url, this is for the functions for entities on the API!</p>
<blockquote>
<font class="help-title-text">This is for a html output for a editing of the entities in the fingerprint listed in the URI!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entity/<?php echo $entitiesmd5; ?>/edit.api" target="_blank"><?php echo API_URL; ?>/v2/entity/<?php echo $entitiesmd5; ?>/edit.api</a></font><br /><br />
<font class="help-title-text">This is for a html output for a editing of the entities in the referee short hash listed in the URI!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entity/<?php echo $entitieshash; ?>/edit.api" target="_blank"><?php echo API_URL; ?>/v2/entity/<?php echo $entitiesmd5; ?>/edit.api</a></font><br /><br />
<font class="help-title-text">This is for a html output for a editing the entities using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/view.api" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/edit.api</a></font><br /><br />
<font class="help-title-text">This is for a html output for a editing entities in using the short referee <strong><?php echo $entitieshash; ?></strong> in the URI!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/view.api" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/edit.api</a></font><br /><br />
</blockquote>
<h2>DOWNLOAD Document Output</h2>
<p>This is done with the <em>download.api</em> extension at the end of the url, this is for the functions for entities on the API!</p>
<blockquote>
<font class="help-title-text">This is for a single entity output for a VCF of the entity in the fingerprint listed in the URI!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/vcf/<?php echo $entitiesmd5; ?>/download.api" target="_blank"><?php echo API_URL; ?>/v2/vcf/<?php echo $entitiesmd5; ?>/download.api</a></font><br /><br />
<font class="help-title-text">This is for a single entity output for a VCF of the entity in the short hash referee listed in the start of the URI!</font><br/>
<font class="help-url-example"><a href="<?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/vcf" target="_blank"><?php echo sprintf(API_SHORT_URL, $entitieshash); ?>/vcf</a></font><br /><br />
<font class="help-title-text">This is for a csv output for entities of the entities in the node list or keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/csv/<?php echo $nodes; ?>/download.api" target="_blank"><?php echo API_URL; ?>/v2/csv/<?php echo $nodes; ?>/download.api</a></font><br /><br />
<font class="help-title-text">This is for a csv output for entities for a selection of one of any of the entities keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis, also includes the country basis of listing;</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/csv/<?php echo $nodes; ?>/<?php echo $country; ?>/download.api" target="_blank"><?php echo API_URL; ?>/v2/csv/<?php echo $nodes; ?>/<?php echo $country; ?>/download.api</a></font><br /><br />
<font class="help-title-text">This is for a csv output for entities for a selection of one of any of the entities keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis by longitude+latitude plus surrounding kilometers!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/csv/<?php echo $nodes; ?>/<?php echo $longitude; ?>/<?php echo $latitude; ?>/<?php echo $kms; ?>/download.api" target="_blank"><?php echo API_URL; ?>/v2/csv/<?php echo $nodes; ?>/<?php echo $longitude; ?>/<?php echo $latitude; ?>/<?php echo $kms; ?>/download.api</a></font><br /><br />
<font class="help-title-text">This is for a csv output for entities of the entities in a random list of how many to return in this example, 200 records!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/csv/random/200/download.api" target="_blank"><?php echo API_URL; ?>/v2/csv/random/200/download.api</a></font><br /><br />
</blockquote>
<h2>UPLOAD Document Output</h2>
<p>This is done with the <em>upload.api</em> extension at the end of the url, you can upload and stage entities on the API permanently and upload them in the file formats of either each one by one or in an archive ZIP file the entities formats we will convert and use <strong style="text-shadow: 0px 0px 0px !important;">( *.<?php $formats = file(__DIR__ . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'entities-converted.diz'); sort($formats); echo implode(" *.", array_unique($formats)); ?> )</strong> ~~ simply put them in a compressed archive if you want in any of these formats <strong style="text-shadow: 0px 0px 0px !important;">( *.<?php $packs = file(__DIR__ . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'packs-converted.diz'); sort($packs); echo implode(" *.", array_unique($packs)); ?> )</strong> containing any of these file formats any other will be ignored, you will be notified and sent a copy of the web entities when they are converted with example CSS via the email address!</p>
<blockquote>
<?php echo $upldform = getHTMLForm('uploads', '', API_URL . '/v2/callback.api', 'form', 2); ?>
<h3>Code Example:</h3>
<div style="max-height: 375px; overflow: scroll;">
<pre style="margin: 14px; padding: 12px; border: 2px solid #ee43a4;">
<?php echo htmlspecialchars($upldform); ?>
</pre>
</div>
</blockquote>
<h2>EDIT Document Output</h2>
<p>This is done with the <em>edit.api</em> extension at the end of the url, this form will subscribe/unsubscribe you from recieving releases of entities after they have been catelogued by the survey! The API will email you a editing URL you can use to update as well as protect your information!</p>
<blockquote>
<?php echo $rlesform = getHTMLForm('edit', '', API_URL . '/v2/callback.api', 'form', 2); ?>
<h3>Code Example:</h3>
<div style="max-height: 375px; overflow: scroll;">
<pre style="margin: 14px; padding: 12px; border: 2px solid #ee43a4;">
<?php echo htmlspecialchars($rlesform); ?>
</pre>
</div>
</blockquote>
<h2>FORMS Document Output</h2>
<p>This is done with the <em>forms.api</em> extension at the end of the urland will provide a HTML Submission form for the API in options the only modal for this at the moment is an Upload form!</p>
<blockquote>
<font class="help-title-text">The following examples for <em>forms.api</em> uses the cURL function <strong>getURIData()</strong> in PHP to use the example below in PHP!</font><br/><br/>
<pre style="margin: 14px; padding: 12px; border: 2px solid #ee43a4;">
<?php
if (!function_exists("getURIData")) {
/* function getURIData() cURL Routine
*
* @author Simon Roberts (labs.coop) wishcraft@users.sourceforge.net
* @return string
*/
function getURIData($uri = '', $timeout = 25, $connectout = 25, $post_data = array())
{
if (!function_exists("curl_init"))
{
return file_get_contents($uri);
}
if (!$btt = curl_init($uri)) {
return false;
}
curl_setopt($btt, CURLOPT_HEADER, 0);
curl_setopt($btt, CURLOPT_POST, (count($posts)==0?false:true));
if (count($posts)!=0)
curl_setopt($btt, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($btt, CURLOPT_CONNECTTIMEOUT, $connectout);
curl_setopt($btt, CURLOPT_TIMEOUT, $timeout);
curl_setopt($btt, CURLOPT_RETURNTRANSFER, true);
curl_setopt($btt, CURLOPT_VERBOSE, false);
curl_setopt($btt, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($btt, CURLOPT_SSL_VERIFYPEER, false);
$data = curl_exec($btt);
curl_close($btt);
return $data;
}
}
?>
</pre><br/><br/>
<font class="help-title-text">You basically import and output to the buffer the HTML Submission form for the form to be emailed new releases of a entities at the following URI: <strong><?php echo API_URL; ?>/v2/edit/forms.api</strong> -- this will generate a HTML form with the return path specified for you to buffer -- see example below in PHP!</font><br/>
<pre style="margin: 14px; padding: 12px; border: 2px solid #ee43a4;">
<?php
// output the table & form
echo getURIData("<?php echo API_URL; ?>/v2/edit/forms.api", 560, 560,
/* URL Upload return after submission (required) */
array('return' => '<?php echo $source; ?>',
/* URL for API Callback for progress and archive with data (optional) */
'callback' => '<?php echo API_URL; ?>/v2/releases/callback.api'));
?>
</pre><br/><br/>
<font class="help-title-text">You basically import and output to the buffer the HTML Submission form for uploading a entities at the following URI: <strong><?php echo API_URL; ?>/v2/uploads/forms.api</strong> -- this will generate a HTML form with the return path specified for you to buffer -- see example below in PHP!</font><br/>
<pre style="margin: 14px; padding: 12px; border: 2px solid #ee43a4;">
<?php
// output the table & form
echo getURIData("<?php echo API_URL; ?>/v2/uploads/forms.api", 560, 560,
/* URL Upload return after submission (required) */
array('return' => '<?php echo $source; ?>',
/* URL for API Callback for progress and archive with data (optional) */
'callback' => '<?php echo API_URL; ?>/v2/uploads/callback.api'));
?>
</pre>
<font color="#2e31c1; entities-size: 134%; entities-weight: 900;">An example of the callback routines the variables are outlined in this file you click and download the PHP Routines examples: <a href="/callback-example.php" target="_blank">callback-example.php</a></font>
</blockquote>
<h2>Serialisation Document Output</h2>
<p>This is done with the <em>serial.api</em> extension at the end of the url, this is for the functions for entities on the API!</p>
<blockquote>
<font class="help-title-text">This is for a list of all categories for the entities on the API</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/categories/serial.api" target="_blank"><?php echo API_URL; ?>/v2/categories/serial.api</a></font><br /><br />
<font class="help-title-text">This is for a list of just the keys for keywords for the entities on the API</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/keywords/serial.api" target="_blank"><?php echo API_URL; ?>/v2/keywords/serial.api</a></font><br /><br />
<font class="help-title-text">This is for a serialisation output for entities of the entities in the node list or keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/serial.api" target="_blank"><?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/serial.api</a></font><br /><br />
<font class="help-title-text">This is for a serialisation output for entities for a selection of one of any of the entities keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis, also includes the country basis of listing;</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $country; ?>/serial.api" target="_blank"><?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $country; ?>/serial.api</a></font><br /><br />
<font class="help-title-text">This is for a csv output for entities for a selection of one of any of the entities keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis by longitude+latitude plus surrounding kilometers!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $longitude; ?>/<?php echo $latitude; ?>/<?php echo $kms; ?>/serial.api" target="_blank"><?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $longitude; ?>/<?php echo $latitude; ?>/<?php echo $kms; ?>/serial.api</a></font><br /><br />
<font class="help-title-text">This is for a csv output for entities of the entities in a random list of how many to return in this example, 200 records!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/random/200/serial.api" target="_blank"><?php echo API_URL; ?>/v2/entities/random/200/serial.api</a></font><br /><br />
</blockquote>
<h2>XML Document Output</h2>
<p>This is done with the <em>xml.api</em> extension at the end of the url, this is for the functions for entities on the API!</p>
<blockquote>
<font class="help-title-text">This is for a list of all categories for the entities on the API</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/categories/xml.api" target="_blank"><?php echo API_URL; ?>/v2/categories/xml.api</a></font><br /><br />
<font class="help-title-text">This is for a list of just the keys for keywords for the entities on the API</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/keywords/xml.api" target="_blank"><?php echo API_URL; ?>/v2/keywords/xml.api</a></font><br /><br />
<font class="help-title-text">This is for a XML output for entities of the entities in the node list or keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/xml.api" target="_blank"><?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/xml.api</a></font><br /><br />
<font class="help-title-text">This is for a XML output for entities for a selection of one of any of the entities keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis, also includes the country basis of listing;</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $country; ?>/xml.api" target="_blank"><?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $country; ?>/xml.api</a></font><br /><br />
<font class="help-title-text">This is for a csv output for entities for a selection of one of any of the entities keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis by longitude+latitude plus surrounding kilometers!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $longitude; ?>/<?php echo $latitude; ?>/<?php echo $kms; ?>/xml.api" target="_blank"><?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $longitude; ?>/<?php echo $latitude; ?>/<?php echo $kms; ?>/xml.api</a></font><br /><br />
<font class="help-title-text">This is for a csv output for entities of the entities in a random list of how many to return in this example, 200 records!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/random/200/xml.api" target="_blank"><?php echo API_URL; ?>/v2/entities/random/200/xml.api</a></font><br /><br />
</blockquote>
<h2>JSON Document Output</h2>
<p>This is done with the <em>json.api</em> extension at the end of the url, you replace the address with either a domain, an IPv4 or IPv6 address the following example is of calls to the api</p>
<blockquote>
<font class="help-title-text">This is for a list of all categories for the entities on the API</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/categories/json.api" target="_blank"><?php echo API_URL; ?>/v2/categories/json.api</a></font><br /><br />
<font class="help-title-text">This is for a list of just the keys for keywords for the entities on the API</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/keywords/json.api" target="_blank"><?php echo API_URL; ?>/v2/keywords/json.api</a></font><br /><br />
<font class="help-title-text">This is for a JSON output for entities of the entities in the node list or keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/json.api" target="_blank"><?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/json.api</a></font><br /><br />
<font class="help-title-text">This is for a JSON output for entities for a selection of one of any of the entities keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis, also includes the country basis of listing;</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $country; ?>/json.api" target="_blank"><?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $country; ?>/json.api</a></font><br /><br />
<font class="help-title-text">This is for a csv output for entities for a selection of one of any of the entities keywords and/or categories you can also include the reserved keyword 'all' to retrieve all basis by longitude+latitude plus surrounding kilometers!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $longitude; ?>/<?php echo $latitude; ?>/<?php echo $kms; ?>/json.api" target="_blank"><?php echo API_URL; ?>/v2/entities/<?php echo $nodes; ?>/<?php echo $longitude; ?>/<?php echo $latitude; ?>/<?php echo $kms; ?>/json.api</a></font><br /><br />
<font class="help-title-text">This is for a csv output for entities of the entities in a random list of how many to return in this example, 200 records!</font><br/>
<font class="help-url-example"><a href="<?php echo API_URL; ?>/v2/entities/random/200/json.api" target="_blank"><?php echo API_URL; ?>/v2/entities/random/200/json.api</a></font><br /><br />
</blockquote>
<?php if (file_exists($fionf = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'apis-labs.coop.html')) {
readfile($fionf);
}?>
<?php if (!in_array(whitelistGetIP(true), whitelistGetIPAddy())) { ?>
<h2>Limits</h2>
<p>There is a limit of <?php echo MAXIMUM_QUERIES; ?> queries per hour. You can add yourself to the whitelist by using the following form API <a href="http://whitelist.<?php echo domain; ?>/">Whitelisting form (whitelist.<?php echo domain; ?>)</a>. This is only so this service isn't abused!!</p>
<?php } ?>
<h2>The Author</h2>
<p>This was developed by Simon Roberts in 2013 and is part of the Chronolabs System and api's.<br/><br/>This is open source which you can download from <a href="https://sourceforge.net/projects/chronolabsapis/">https://sourceforge.net/projects/chronolabsapis/</a> contact the scribe <a href="mailto:wishcraft@users.sourceforge.net">wishcraft@users.sourceforge.net</a></p></body>
</div>
</html>
<?php