@@ -260,9 +260,9 @@ public function exchangeAuthorizationCodeForToken($code, $realmID){
260
260
'Authorization ' => $ authorizationHeaderInfo ,
261
261
'Content-Type ' => 'application/x-www-form-urlencoded '
262
262
);
263
- $ this ->LogAPIRequestToLog (http_build_query ($ parameters ), CoreConstants::OAUTH2_TOKEN_ENDPOINT_URL , $ http_header );
263
+ // $this->LogAPIRequestToLog(http_build_query($parameters), CoreConstants::OAUTH2_TOKEN_ENDPOINT_URL, $http_header);
264
264
$ intuitResponse = $ this ->curlHttpClient ->makeAPICall (CoreConstants::OAUTH2_TOKEN_ENDPOINT_URL , CoreConstants::HTTP_POST , $ http_header , http_build_query ($ parameters ), null , true );
265
- $ this ->LogAPIResponseToLog ($ intuitResponse ->getBody (), $ requestUri , $ intuitResponse ->getHeaders ());
265
+ // $this->LogAPIResponseToLog($intuitResponse->getBody(), $requestUri, $intuitResponse->getHeaders());
266
266
$ this ->faultHandler = $ intuitResponse ->getFaultHandler ();
267
267
if ($ this ->faultHandler ) {
268
268
throw new ServiceException ("Exchange Authorization Code for Access Token failed. Body: [ " . $ this ->faultHandler ->getResponseBody () . "]. " , $ this ->faultHandler ->getHttpStatusCode ());
@@ -281,9 +281,9 @@ public function refreshToken(){
281
281
$ refreshToken = $ this ->getAccessToken ()->getRefreshToken ();
282
282
$ http_header = $ this ->constructRefreshTokenHeader ();
283
283
$ requestBody = $ this ->constructRefreshTokenBody ($ refreshToken );
284
- $ this ->LogAPIRequestToLog ($ requestBody , CoreConstants::OAUTH2_TOKEN_ENDPOINT_URL , $ http_header );
284
+ // $this->LogAPIRequestToLog($requestBody, CoreConstants::OAUTH2_TOKEN_ENDPOINT_URL, $http_header);
285
285
$ intuitResponse = $ this ->curlHttpClient ->makeAPICall (CoreConstants::OAUTH2_TOKEN_ENDPOINT_URL , CoreConstants::HTTP_POST , $ http_header , $ requestBody , null , true );
286
- $ this ->LogAPIResponseToLog ($ intuitResponse ->getBody (), $ requestUri , $ intuitResponse ->getHeaders ());
286
+ // $this->LogAPIResponseToLog($intuitResponse->getBody(), $requestUri, $intuitResponse->getHeaders());
287
287
$ this ->faultHandler = $ intuitResponse ->getFaultHandler ();
288
288
if ($ this ->faultHandler ) {
289
289
throw new ServiceException ("Refresh OAuth 2 Access token with Refresh Token failed. Body: [ " . $ this ->faultHandler ->getResponseBody () . "]. " , $ this ->faultHandler ->getHttpStatusCode ());
@@ -301,9 +301,9 @@ public function refreshToken(){
301
301
public function refreshAccessTokenWithRefreshToken ($ refreshToken ){
302
302
$ http_header = $ this ->constructRefreshTokenHeader ();
303
303
$ requestBody = $ this ->constructRefreshTokenBody ($ refreshToken );
304
- $ this ->LogAPIRequestToLog ($ requestBody , CoreConstants::OAUTH2_TOKEN_ENDPOINT_URL , $ http_header );
304
+ // $this->LogAPIRequestToLog($requestBody, CoreConstants::OAUTH2_TOKEN_ENDPOINT_URL, $http_header);
305
305
$ intuitResponse = $ this ->curlHttpClient ->makeAPICall (CoreConstants::OAUTH2_TOKEN_ENDPOINT_URL , CoreConstants::HTTP_POST , $ http_header , $ requestBody , null , true );
306
- $ this ->LogAPIResponseToLog ($ intuitResponse ->getBody (), $ requestUri , $ intuitResponse ->getHeaders ());
306
+ // $this->LogAPIResponseToLog($intuitResponse->getBody(), $requestUri, $intuitResponse->getHeaders());
307
307
$ this ->faultHandler = $ intuitResponse ->getFaultHandler ();
308
308
if ($ this ->faultHandler ) {
309
309
throw new ServiceException ("Refresh OAuth 2 Access token with Refresh Token failed. Body: [ " . $ this ->faultHandler ->getResponseBody () . "]. " , $ this ->faultHandler ->getHttpStatusCode ());
@@ -333,9 +333,9 @@ public function revokeToken($accessTokenOrRefreshToken){
333
333
'Authorization ' => $ authorizationHeaderInfo ,
334
334
'Content-Type ' => 'application/json '
335
335
);
336
- $ this ->LogAPIRequestToLog ($ parameters , CoreConstants::OAUTH2_TOKEN_ENDPOINT_URL , $ http_header );
336
+ // $this->LogAPIRequestToLog($parameters, CoreConstants::OAUTH2_TOKEN_ENDPOINT_URL, $http_header);
337
337
$ intuitResponse = $ this ->curlHttpClient ->makeAPICall (CoreConstants::REVOCATION_ENDPONT , CoreConstants::HTTP_POST , $ http_header , json_encode ($ parameters ), null , true );
338
- $ this ->LogAPIResponseToLog ($ intuitResponse ->getBody (), $ requestUri , $ intuitResponse ->getHeaders ());
338
+ // $this->LogAPIResponseToLog($intuitResponse->getBody(), $requestUri, $intuitResponse->getHeaders());
339
339
$ this ->faultHandler = $ intuitResponse ->getFaultHandler ();
340
340
if ($ this ->faultHandler ) {
341
341
throw new ServiceException ("Revoke Token failed. Body: [ " . $ this ->faultHandler ->getResponseBody () . "]. " , $ this ->faultHandler ->getHttpStatusCode ());
@@ -366,9 +366,9 @@ public function getUserInfo($accessToken = null, $env = "production"){
366
366
'Authorization ' => 'Bearer ' . $ accessToken
367
367
);
368
368
369
- $ this ->LogAPIRequestToLog (null , $ url , $ http_header );
369
+ // $this->LogAPIRequestToLog(null, $url, $http_header);
370
370
$ intuitResponse = $ this ->curlHttpClient ->makeAPICall ($ url , CoreConstants::HTTP_GET , $ http_header , null , null , true );
371
- $ this ->LogAPIResponseToLog ($ intuitResponse ->getBody (), $ requestUri , $ intuitResponse ->getHeaders ());
371
+ // $this->LogAPIResponseToLog($intuitResponse->getBody(), $requestUri, $intuitResponse->getHeaders());
372
372
$ this ->faultHandler = $ intuitResponse ->getFaultHandler ();
373
373
if ($ this ->faultHandler ) {
374
374
throw new ServiceException ("Get UrerInfo failed. Body: [ " . $ this ->faultHandler ->getResponseBody () . "]. " , $ this ->faultHandler ->getHttpStatusCode ());
0 commit comments