1 | <?php |
||
7 | class Betting extends BaseApi |
||
8 | { |
||
9 | /** |
||
10 | * Betfair API endpoint for betting subsystem requests |
||
11 | */ |
||
12 | const ENDPOINT = 'https://api.betfair.com/exchange/betting/rest/v1.0/'; |
||
13 | |||
14 | /** |
||
15 | * Prepare parameters for API requests, ensuring the mandatory requirments are satisfied |
||
16 | * |
||
17 | * @param array $params |
||
18 | */ |
||
19 | public function prepare($params) |
||
20 | { |
||
21 | $this->params = !empty($params) ? $params[ 0 ] : [ ]; |
||
22 | |||
23 | // force mandatory fields |
||
24 | $this->filter(); |
||
25 | $this->maxRecords(); |
||
26 | } |
||
27 | |||
58 |