-
Notifications
You must be signed in to change notification settings - Fork 11
/
example.php
82 lines (51 loc) · 2.29 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
71
72
73
74
75
76
77
78
79
80
81
82
<?php
require_once __DIR__ . '/vendor/autoload.php'; // Autoload files using Composer autoload
$phpCricket = new PhpCricket\PhpCriclib('your_access_key', 'your_secret_key', 'your_app_id', 'unique_device_id');
/**
* NOTE: To access the Cricket API's data, you need Valid Match Keys.
*
* Here, you may try with some Free Match Keys.
*
*/
/* Get Match Details */
// $getMatch = $phpCricket->getMatch('dev_season_2014_q3', 'summary_card');
// echo json_encode($getMatch);
/* Get BallbyBall Details */
// $getBallbyBall = $phpCricket->getBallByBall('dev_season_2014_q3', 'b_1_10');
// echo json_encode($getBallbyBall);
/* Get Recent Match Details */
// $getRecentMatch = $phpCricket->getRecentMatch('dev_season_2014', 'micro_card');
// echo json_encode($getRecentMatch);
/* Get Recent Season Details */
// $getRecentSeason = $phpCricket->getRecentSeason();
// echo json_encode($getRecentSeason);
/* Get Schedule Details */
// $getSchedule = $phpCricket->getSchedule('2013-05');
// echo json_encode($getSchedule);
/* Get Season Schedule Details */
// $getSeasonSchedule = $phpCricket->getSeasonSchedule('dev_season_2014', '2013-05');
// echo json_encode($getSeasonSchedule);
/* Get Player Stats Details */
// $getPlayerStats = $phpCricket->getPlayerStats('ms_dhoni', 'icc');
// echo json_encode($getPlayerStats);
/* Get Season Player Stats Details */
// $getSeasonPlayerStats = $phpCricket->getSeasonPlayerStats('asiacup_2016', 'ms_dhoni');
// echo json_encode($getSeasonPlayerStats);
/* Get Season Details */
// $getSeason = $phpCricket->getSeason('dev_season_2014', 'micro_card');
// echo json_encode($getSeason);
/* Get Season Stats Details */
// $getSeasonStats = $phpCricket->getSeasonStats('dev_season_2014');
// echo json_encode($getSeasonStats);
/* Get Season Points Details */
// $getSeasonPoints = $phpCricket->getSeasonPoints('dev_season_2014');
// echo json_encode($getSeasonPoints);
/* Get Season Team Details */
// $getSeasonTeam = $phpCricket->getSeasonTeam('dev_season_2014', 'dev_season_2014_teamx', 'icc');
// echo json_encode($getSeasonTeam);
/* Get Overs Summary Details */
// $getOverSummary = $phpCricket->getOversSummary('dev_season_2014_q6');
// echo json_encode($getOverSummary);
/* Get News Aggregation */
// $getNewsAgg = $phpCricket->getNewsAggregation();
// echo json_encode($getNewsAgg);