Initial completion of scanning of qr code from gmail

This commit is contained in:
heyethereum
2024-07-28 03:07:23 +08:00
parent 20c9473bd3
commit 3567457026
7 changed files with 206 additions and 60 deletions

View File

@@ -1,6 +1,7 @@
package com.safeqr.app.gmail.controller;
import com.google.api.services.gmail.model.*;
import com.safeqr.app.gmail.dto.ScannedGmailResponseDto;
import org.apache.commons.codec.binary.Base64;
import org.json.JSONObject;
import com.google.api.client.auth.oauth2.AuthorizationCodeRequestUrl;
@@ -106,7 +107,7 @@ public class GmailController {
return new ResponseEntity<>("Access token is missing", HttpStatus.BAD_REQUEST);
}
return new ResponseEntity<>(gmailService.getEmail(accessToken).toString(), HttpStatus.OK);
return new ResponseEntity<>(gmailService.getEmail(accessToken), HttpStatus.OK);
}
}