* @return array
*/
private function sentRequest ($path, $fields, $cookie = false, $count = 0) {
* @return array
*/
private function sentRequest ($path, $fields, $cookie = false, $count = 0) {
$body = preg_replace("/(\r\n)|(\r)/", "\n", $body);
$body = preg_replace('/\'/i', '"', $body);
$body = preg_replace("/\[\s+\]/i", '[ {} ]', $body);
$body = preg_replace("/(\r\n)|(\r)/", "\n", $body);
$body = preg_replace('/\'/i', '"', $body);
$body = preg_replace("/\[\s+\]/i", '[ {} ]', $body);
private function getToken () {
if ($this->checkLogin() !== true) throw new Exception('you musst be logged in to use this method');
private function getToken () {
if ($this->checkLogin() !== true) throw new Exception('you musst be logged in to use this method');