public function __construct($args = array())
 {
     parent::__construct($this->parse_args($args, $this->get_default_args()), $this->get_int_args());
     $this->get_query_args();
     $this->get_query_url();
     $this->_response = $this->query('GET');
 }
 public function get_user_opened($user_id = false)
 {
     if (!empty($user_id)) {
         $this->_model['endpoint'] = 'user_opened';
         $this->set_query_url();
         $this->_model['query_args']['user_id'] = $user_id;
         $result = parent::query('GET');
         if (!empty($result->total) || $result->total === 0) {
             return $result->total;
         }
         return false;
     }
 }
 public function __construct($args = array())
 {
     parent::__construct($this->parse_args($args, $this->_get_args()));
 }