I'm creating an email-based application in React with the Gmail API. I'm loading in a bunch of messages, and I want to display avatars of the senders.
I'm using this package to display avatars. I'd like to either have a Google Id or an image url. It would also be nice to be able to get images for other popular services, such as Outlook and Yahoo mail.
Other people have asked this same question, but all the answers either seem to use the Picasa API (which is deprecated) or the Google+ API (which will be deprecated).
EDIT: Yes, the react-avatar
package claims it can find an avatar based on supplied user data, but all it does with the email is find a Gravatar, which many people don't have.
from How to get avatar for gmail user?
No comments:
Post a Comment