protected function requestToken() {
		$ret = $this->rs->request(array(
			'login' => $this->opts['username'],
			'password' => $this->opts['password'],
			'lifetime' => isSet($this->opts['lifetime']) ? $this->opts['lifetime'] : 'renewable_auto',
			'interval' => isSet($this->opts['interval']) ? $this->opts['interval'] : 300
		));
		
		$this->token = $ret->getResponse()->token;
		
		$v = $ret->getResponse()->valid_to;
		
		if($v)
			$this->validTo = strtotime($v);
		
		$this->configured = true;
	}
protected function requestToken() {
		$ret = $this->rs->request(array(
			'login' => $this->opts['username'],
			'password' => $this->opts['password'],
			'lifetime' => isSet($this->opts['lifetime']) ? $this->opts['lifetime'] : 'renewable_auto',
			'interval' => isSet($this->opts['interval']) ? $this->opts['interval'] : 300
		));
		
		$this->token = $ret->getResponse()->token;
		
		$v = $ret->getResponse()->valid_to;
		
		if($v)
			$this->validTo = strtotime($v);
		
		$this->configured = true;
	}
protected function requestToken ( ) { $ ret = $ this -> rs -> request ( array ( 'login' => $ this -> opts [ 'username' ] , 'password' => $ this -> opts [ 'password' ] , 'lifetime' => isSet ( $ this -> opts [ 'lifetime' ] ) ? $ this -> opts [ 'lifetime' ] : 'renewable_auto' , 'interval' => isSet ( $ this -> opts [ 'interval' ] ) ? $ this -> opts [ 'interval' ] : 300 ) ) ; $ this -> token = $ ret -> getResponse ( ) -> token ; $ v = $ ret -> getResponse ( ) -> valid_to ; if ( $ v ) $ this -> validTo = strtotime ( $ v ) ; $ this -> configured = true ; }
Request a new token from the API.
Request a new token from the API .