0

I am play application developer. I used secure social to login into my application. I got username, email id, first name and last name through secure social. I want to get unread message of logged in user gmail inbox. how to get that. Please help me. Thanks

user3454863
  • 161
  • 1
  • 2
  • 10

1 Answers1

0

If you're a Scala developer then having a look at this GitHub repo should help you on your way. It has a working implementation of integrating Securesocial authentication with accessing a Gmail inbox.

https://github.com/dr3s/pimly/tree/master/pimly-gmail

Two points:

  • You need a way to convert your OAuth2 authorisation to something IMAP can use (SASL)
  • You can use the java mail API to interact with IMAP email messages
amn41
  • 1,164
  • 1
  • 9
  • 17