-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelp.php
executable file
·121 lines (118 loc) · 9.36 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
<?php
/**
* Chronolabs Life Streaming Media REST API File
*
* 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://labs.coop
* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
* @package lookups
* @since 1.1.2
* @author Simon Roberts <[email protected]>
* @version $Id: index.php 1000 2013-06-07 01:20:22Z mynamesnot $
* @subpackage api
* @description Internet Protocol Address Information API Service REST
*/
$genre = getRandomGenre();
$stations = getRandomGenre();
$station = lifeRadio::getStationsFromAPI('random', '');
$outputs = array('raw.api' => 'PHP Raw Script', 'serial.api' => 'Serialisation', 'json.api' => 'JSON', 'xml.api'=>'XML');
?>
<!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="[email protected]" />
<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': 'ChronolabsCoop'},
{'service': 'facebook', 'id': 'mynamesnot'},
{'service': 'twitter', 'id': 'SimonXaies'},
{'service': 'twitter', 'id': 'ChronolabsCoop'},
{'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 conducting search or retriving URL/URI's for Streaming service around the internet, you can use it to find one of our life media sources anytime, and remember to use it wisely.</p>
<h2>Code API Documentation</h2>
<p>You can find the phpDocumentor code API documentation at the following path :: <a target="_blank" 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>
<?php
foreach($outputs as $output => $title) {
?>
<h2><?php echo $title; ?> Document Output</h2>
<p>This is done with the <em><?php echo $output; ?></em> extension at the end of the url, you replace the address with either a place, an country either with no spaces in words or country ISO2 or ISO3 code and a name to search for the place on the api</p>
<blockquote>
<font color="#009900">This is for a primary genre categories of the source which is currently <em>radio</em></font><br/>
<em><strong><a href="<?php echo API_URL; ?>/v2/radio/genres/primary/<?php echo $output; ?>" target="_blank"><?php echo API_URL; ?>/v2/radio/genres/primary/<?php echo $output; ?></a></strong></em><br /><br />
<font color="#009900">This is for a all genre's information of the source which is currently <em>radio</em></font><br/>
<em><strong><a href="<?php echo API_URL; ?>/v2/radio/genres/all/<?php echo $output; ?>" target="_blank"><?php echo API_URL; ?>/v2/radio/genres/all/<?php echo $output; ?></a></strong></em><br /><br />
<font color="#009900">This is for a genre's <strong><?php echo $genre; ?></strong> sub-categories of the source which is currently <em>radio</em></font><br/>
<em><strong><a href="<?php echo API_URL; ?>/v2/radio/genres/<?php echo $genre; ?>/<?php echo $output; ?>" target="_blank"><?php echo API_URL; ?>/v2/radio/genres/<?php echo $genre; ?>/<?php echo $output; ?></a></strong></em><br /><br />
<font color="#009900">This is for a all genre's categorgies of the source which is currently <em>radio</em></font><br/>
<em><strong><a href="<?php echo API_URL; ?>/v2/radio/search/Sydney%20Dance/<?php echo $output; ?>" target="_blank"><?php echo API_URL; ?>/v2/radio/search/Sydney%20Dance/<?php echo $output; ?></a></strong></em><br /><br />
<font color="#009900">This is for retrieving a stations listening for the genre <strong><?php echo $stations; ?></strong> on the <em>radio</em></font><br/>
<em><strong><a href="<?php echo API_URL; ?>/v2/radio/genre/<?php echo $stations; ?>/<?php echo $output; ?>" target="_blank"><?php echo API_URL; ?>/v2/radio/genre/<?php echo $stations; ?>/<?php echo $output; ?></a></strong></em><br /><br />
<font color="#009900">This is for retrieving a Top Listening List of 500 station's and streams listings of the source which is currently <em>radio</em></font><br/>
<em><strong><a href="<?php echo API_URL; ?>/v2/radio/top500/<?php echo $output; ?>" target="_blank"><?php echo API_URL; ?>/v2/radio/top500/<?php echo $output; ?></a></strong></em><br /><br />
<font color="#009900">This is for retrieving a station listening at random and streams listings of the source which is currently <em>radio</em></font><br/>
<em><strong><a href="<?php echo API_URL; ?>/v2/radio/random/<?php echo $output; ?>" target="_blank"><?php echo API_URL; ?>/v2/radio/random/<?php echo $output; ?></a></strong></em><br /><br />
<font color="#009900">This is for retrieving a station's stream(s) URI/URL's with an identity key listings of the source which is currently <em>radio</em></font><br/>
<em><strong><a href="<?php echo API_URL; ?>/v2/radio/station/<?php echo $station['key']; ?>/<?php echo $output; ?>" target="_blank"><?php echo API_URL; ?>/v2/radio/station/<?php echo $station['key']; ?>/<?php echo $output; ?></a></strong></em><br /><br />
</blockquote>
<?php } ?>
<h2>The Author</h2>
<p>This was developed by Simon Roberts in 2018 and is part of the Chronolabs Cooperative System(s). If you need to contact simon you can do so at the following address <a href="mailto:[email protected]">[email protected]</a>!<br/><br/>This code is found at: <a href="https://github.com/Chronolabs-Cooperative/Life-API-PHP" target="_blank">https://github.com/Chronolabs-Cooperative/Life-API-PHP</a></p></body>
</html>