lib/XeroOAuth.php
function refreshToken($accessToken, $sessionHandle) {
		$code = $this->request ( 'GET', $this->url ( 'AccessToken', '' ), array (
				'oauth_token' => $accessToken,
				'oauth_session_handle' => $sessionHandle 
		) );
		if ($this->response ['code'] == 200) {
			
			$response = $this->extract_params ( $this->response ['response'] );
			
			return $response;
		} else {
			$this->response ['helper'] = "TokenFatal";
			return $this->response;
		}
	}
function refreshToken($accessToken, $sessionHandle) {
		$code = $this->request ( 'GET', $this->url ( 'AccessToken', '' ), array (
				'oauth_token' => $accessToken,
				'oauth_session_handle' => $sessionHandle 
		) );
		if ($this->response ['code'] == 200) {
			
			$response = $this->extract_params ( $this->response ['response'] );
			
			return $response;
		} else {
			$this->response ['helper'] = "TokenFatal";
			return $this->response;
		}
	}
function refreshToken ( $ accessToken , $ sessionHandle ) { $ code = $ this -> request ( 'GET' , $ this -> url ( 'AccessToken' , '' ) , array ( 'oauth_token' => $ accessToken , 'oauth_session_handle' => $ sessionHandle ) ) ; if ( $ this -> response [ 'code' ] == 200 ) { $ response = $ this -> extract_params ( $ this -> response [ 'response' ] ) ; return $ response ; } else { $ this -> response [ 'helper' ] = "TokenFatal" ; return $ this -> response ; } }
Refreshes the access token for partner API type applications

@param string $accessToken
the current access token for the session
@param string $sessionHandle
the current session handle for the session
@return array response array from request
Refreshes the access token for partner API type applications