private function getHeaders() {
        $headers = array('Accept-Language: '.$this->locale);
        
        if($this->user_authorization) {
            $headers[] = 'Authorization: Bearer '.$this->token;
        } else {
            $headers[] ='Authorization: Token '.$this->token;
        }
        return $headers;
    }