public function get_data()
    {
        $json_data = $this->response->getBody();
        $data = json_decode($json_data);
    
        if (!isset($data->status)) {
            // 	$file = getcwd();
            // $date = new \DateTime();

            // error_log(print_r(date_format($date, 'Y-m-d H:i:s')."\n".$json_data."\n ---\n", TRUE), 3, getcwd().'/src/HTTP/log/error.log');

            throw new ResponseException('There has been problem with your request');
        }
        
        if ($data->status == 'Fail') {
            throw new ResponseException($data->errors);
        }

        return $data;
    }
public function get_data()
    {
        $json_data = $this->response->getBody();
        $data = json_decode($json_data);
    
        if (!isset($data->status)) {
            // 	$file = getcwd();
            // $date = new \DateTime();

            // error_log(print_r(date_format($date, 'Y-m-d H:i:s')."\n".$json_data."\n ---\n", TRUE), 3, getcwd().'/src/HTTP/log/error.log');

            throw new ResponseException('There has been problem with your request');
        }
        
        if ($data->status == 'Fail') {
            throw new ResponseException($data->errors);
        }

        return $data;
    }
public function get_data ( ) { $ json_data = $ this -> response -> getBody ( ) ; $ data = json_decode ( $ json_data ) ; if ( ! isset ( $ data -> status ) ) { // 	$file = getcwd(); // $date = new \DateTime(); // error_log(print_r(date_format($date, 'Y-m-d H:i:s')."\n".$json_data."\n ---\n", TRUE), 3, getcwd().'/src/HTTP/log/error.log'); throw new ResponseException ( 'There has been problem with your request' ) ; } if ( $ data -> status == 'Fail' ) { throw new ResponseException ( $ data -> errors ) ; } return $ data ; }
get the json decoded data.

@throws \AcademyHQ\API\HTTP\Response\Exception\ResponseException
@return json decoded data
get the json decoded data .