forked from onumahkalusamuel/iptv-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
52 lines (45 loc) · 1.88 KB
/
index.php
File metadata and controls
52 lines (45 loc) · 1.88 KB
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
<?php
require_once __DIR__ . '/MoviesTrait.php';
final class Index
{
use MoviesTrait;
public function __construct()
{
$output = array(
'success' => true,
'message' => 'Collection of publicly available IPTV channels from all over the world',
'author' => 'Samuel',
'endpoints' => array(
'/api.php' => array(
'method' => 'GET|POST',
'description' => 'Fetch list of IPTV groups and Playlists.',
'parameters' => array(
array(
'name' => 'group',
'type' => 'string',
'required' => false,
'description' => 'The group to be returned (categories, languages, countries).',
'default' => 'categories'
),
array(
'name' => 'code',
'type' => 'string',
'required' => false,
'description' => 'The code from the group. Note: You must specify "group" if you want to specify "code".',
'default' => null
),
array(
'name' => 'query',
'type' => 'string',
'required' => false,
'description' => 'Search term to filter results. Note: If only "group" is specified, then this field will apply to the playlist (group) title, but if "code" is specified, this will apply to the playlist items titles.',
'default' => null
)
)
)
)
);
$this->jsonResponse($output);
}
}
new Index();