From 4592da214162e024250db0eb4479b05ef44b7524 Mon Sep 17 00:00:00 2001 From: pravesh-8541 Date: Thu, 7 May 2020 12:18:18 +0530 Subject: [PATCH] correction in Exception message --- src/oauth/ZohoOAuthClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oauth/ZohoOAuthClient.php b/src/oauth/ZohoOAuthClient.php index a15d76d4..4cd62131 100644 --- a/src/oauth/ZohoOAuthClient.php +++ b/src/oauth/ZohoOAuthClient.php @@ -159,7 +159,7 @@ public function getUserEmailIdFromIAM($accessToken) $apiResponse = $connector->get(); $jsonResponse = self::processResponse($apiResponse); if(!array_key_exists("Email", $jsonResponse)){ - throw new ZohoOAuthException("Exception while fetching UserID from grant token, Make sure AAAserver.profile.Read scope is included while generating the Grant token " . $jsonResponse); + throw new ZohoOAuthException("Exception while fetching UserID from access token, Make sure AAAserver.profile.Read scope is included while generating the Grant token " . $jsonResponse); } return $jsonResponse['Email']; }