Aktualnie działa pobieranie Lotto, Lotto Plus, oraz EkstraPensja
https://github.com/G910/LottoAPI
Każda ocena i podpowiedź jest cenna!

private function isDateValid($date) { if ($date !== null && !$isCorrectData) { $this->_lastErrorCode = "clientSide1"; $this->_lastErrorDesc = "Data wprowadzona w niewłaściwym formacie. Prawidłowy: YYYY-MM-DD"; return false; } return $date; } public function getLotto($date = null) { if(($date = $this->isDateValid($date)) === false) { return false; } $data = []; $data['type'] = 'getLotto'; if ($date !== null) { $data['type'] .= 'ByDate'; $data['date'] = $date; } return $this->curl($data); }
$this->_connected = true; $this->_token = $response['token']; return true; }else{ $this->_lastErrorCode = $response['error']['code']; $this->_lastErrorDesc = $response['error']['description']; return false; }
$this->_lastErrorCode = $response['error']['code']; $this->_lastErrorDesc = $response['error']['description']; return false; } $this->_connected = true; $this->_token = $response['token']; return true;