src/Core/OAuth/OAuth2/OAuth2LoginHelper.php
public function revokeToken($accessTokenOrRefreshToken){
      if(!isset($accessTokenOrRefreshToken) ){
           throw new SdkException("The refresh token or access token is not set. Can't revoke OAuth 2 Token.");
      }
      $parameters = array(
         "token" => (String)$accessTokenOrRefreshToken
      );
      $authorizationHeaderInfo = $this->generateAuthorizationHeader();
      $http_header = array(
        'Accept' => 'application/json',
        'Authorization' => $authorizationHeaderInfo,
        'Content-Type' => 'application/json'
      );
      $intuitResponse = $this->curlHttpClient->makeAPICall(CoreConstants::REVOCATION_ENDPONT, CoreConstants::HTTP_POST, $http_header, json_encode($parameters), null, true);
      $this->faultHandler = $intuitResponse->getFaultHandler();
      if($this->faultHandler) {
         throw new ServiceException("Revoke Token failed. Body: [" . $this->faultHandler->getResponseBody() . "].", $this->faultHandler->getHttpStatusCode());
      }else{
         $this->faultHandler = false;
         return true;
      }
    }
public function revokeToken($accessTokenOrRefreshToken){
      if(!isset($accessTokenOrRefreshToken) ){
           throw new SdkException("The refresh token or access token is not set. Can't revoke OAuth 2 Token.");
      }
      $parameters = array(
         "token" => (String)$accessTokenOrRefreshToken
      );
      $authorizationHeaderInfo = $this->generateAuthorizationHeader();
      $http_header = array(
        'Accept' => 'application/json',
        'Authorization' => $authorizationHeaderInfo,
        'Content-Type' => 'application/json'
      );
      $intuitResponse = $this->curlHttpClient->makeAPICall(CoreConstants::REVOCATION_ENDPONT, CoreConstants::HTTP_POST, $http_header, json_encode($parameters), null, true);
      $this->faultHandler = $intuitResponse->getFaultHandler();
      if($this->faultHandler) {
         throw new ServiceException("Revoke Token failed. Body: [" . $this->faultHandler->getResponseBody() . "].", $this->faultHandler->getHttpStatusCode());
      }else{
         $this->faultHandler = false;
         return true;
      }
    }
Revoke an OAuth 2 access token or refresh token
@param String $accessTokenOrRefreshToken      THe access token or the refreshToken
@throws any non-200 status code will cause an exception to throw
@return Boolean True | False