public function getBearerToken()
    {
        $this->response = $this->twitter->oauth2_token();

        if ($this->responseOk()) {
            return $this->response->access_token;
        }

        $this->triggerError("Unable to get bearer token.", $this->response);
    }
public function getBearerToken()
    {
        $this->response = $this->twitter->oauth2_token();

        if ($this->responseOk()) {
            return $this->response->access_token;
        }

        $this->triggerError("Unable to get bearer token.", $this->response);
    }
public function getBearerToken ( ) { $ this -> response = $ this -> twitter -> oauth2_token ( ) ; if ( $ this -> responseOk ( ) ) { return $ this -> response -> access_token ; } $ this -> triggerError ( "Unable to get bearer token." , $ this -> response ) ; }
Get bearer token.

@return mixed
@throws Exceptions\TwitterApiException
@throws \Exception
Get bearer token .