-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.php
70 lines (54 loc) · 2.85 KB
/
example.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
<?php
require_once __DIR__ . '/vendor/autoload.php'; // Autoload files using Composer autoload
$phpFootball = new PhpFootball\PhpFootballLib('ACCESS_KEY', 'SECRET_KEY', 'APP_ID', 'UNIQUE_DEVICE_ID');
/**
* NOTE: To access the Roanuz Football API's data, you need Valid Match Keys.
*
* Here, you may try with some Free Match Keys.
*
*/
/* Get Match Details */
// $getMatch = $phpFootball->getMatch('1214815992417488898');
// echo json_encode($getMatch);
/* Get Tournament Details */
// $getTournament = $phpFootball->getTournament('1214777636782477313');
// echo json_encode($getTournament);
/* Get Tournament Team Details */
// $getTournamentTeam = $phpFootball->getTournamentTeam('1214777636782477313','1019527695853293577');
// echo json_encode($getTournamentTeam);
/* Get Tournament Round Details */
// $getTournamentRound = $phpFootball->getTournamentRound('1214777636782477313','1214782682358222849');
// echo json_encode($getTournamentRound);
/* Get Tournament Stats Details */
// $getTournamentStats = $phpFootball->getTournamentStats('1214777636782477313');
// echo json_encode($getTournamentStats);
/* Get Tournament Team Stats Details */
// $getTournamentTeamStats = $phpFootball->getTournamentTeamStats('1214777636782477313','1218087745809944577');
// echo json_encode($getTournamentTeamStats);
/* Get Tournament Player Stats Details */
// $getTournamentPlayerStats = $phpFootball->getTournamentPlayerStats('1214777636782477313','1002227290479923221');
// echo json_encode($getTournamentPlayerStats);
/* Get Tournament Schedule */
// $getTournamentSchedule = $phpFootball->getTournamentSchedule('1214777636782477313');
// echo json_encode($getTournamentSchedule);
/* Get Recent Schedule */
// $getRecentTournament = $phpFootball->getRecentTournament();
// echo json_encode($getRecentTournament);
/* Get Matches in Round */
// $getTournamentMatches = $phpFootball->getTournamentMatches('1214777636782477313','1214782682358222849');
// echo json_encode($getTournamentMatches);
/* Get Matches in Round */
// $getRecentTournamentMatches = $phpFootball->getRecentTournamentMatches('1214777636782477313');
// echo json_encode($getRecentTournamentMatches);
/* Get Tournament Standings */
// $getTournamentStandings = $phpFootball->getTournamentStandings('1214777636782477313');
// echo json_encode($getTournamentStandings);
/* Get Fantasy Credit points*/
// $getFantasyCreditPoints = $phpFootball->getFantasyCreditPoints('1214815992417488898', 'RZ-C-A100');
// echo json_encode($getFantasyCreditPoints);
/* Get Fantasy Match Credit Variation*/
// $getFantasyMatchCreditVariation = $phpFootball->getFantasyMatchCreditVariation('1214815992417488898', 'RZ-C-A100');
// echo json_encode($getFantasyMatchCreditVariation);
/* Get Fantasy Match Credit Variation*/
// $getFantasyMatchPoint = $phpFootball->getFantasyMatchPoint('1214815992417488898', 'RZ-C-A100');
// echo json_encode($getFantasyMatchPoint);