Send an Email as the Currently Logged in User | Google API - api

Is it possible to send an email to join the site as the currently logged in user on your site to his/her contacts?

You can do that now with the GMail API. You will need the user's consent of course, and will need the Contacts API to retrieve the user's contacts.

Related

twitter's user search api:- search using email id

I am working on a requirement where I need to fetch user profile from various social media sites. For example, I can use the twitter's user search api to fetch user profile using the user name. But i have only email address and want to fetch user profile data from twitter using email address. I found out that twitter's api does not support user search based on email address. Similarly facebook API also does not support user profile search based on email ID. Is there any other way to fetch the user profile data from these websites using email Id's?

getting gmail contacts using oAuth

I have an application that allows Google+ sign-in for users. I would like to get the user's gmail contacts. Can I use the same access token to get gmail contacts as well?
My confusion is around gmail contacts vs Google+ contacts. Are these two different things?
Yes they are different. Contacts are people who have sent emails to or added to contacts in Gmail and can be accessed through this API. Google+ contacts are people/pages you follow/friend on Google+ and can be access using this API. There will generally be some overlap between the two though.

Does anyone know how to get Google+ user's home/work address(not email) from Google API?

Currently we retrive user's profile by people.get API, and scopes are profile email https://www.googleapis.com/auth/plus.login.
But no matter user sets their home/work address as public, we still can't get address from reponse.
Did I use the wrong API or scopes?
As documented for scopes.
email gives access to "the user's Google account email address."
https://www.googleapis.com/auth/plus.profile.emails.read gives access to "the user's Google account email address, as well as any public, verified email addresses in the user's Google+ profile."

Sending notifications for website users signed via Facebook or Twitter. How?

Let's imagine that we have ecommerce website that suggests 3 way for user registration:
regular email
via facebook
via twitter
Now let's imagine that we have user signed via facebook/twitter account and we need send him notification about his order (order complete or s/t like that). How can we do this? It is absolutely clear for regular email users - we should just email them notification, but what about Facebook/Twitter users?
Thank you!
With Facebook when they authenticate with your application, you can request email permissions to be able to access the email address they have nominated to use with their facebook account. At the point of registeration you could then store this address in your database and all order flow could follow the existing email path.
You could probably re-use this methodology for twitter too.
I can understand the need to differentiate on registration processes however I think you want to streamline post order notification as much as possible for consistency across users.

Any way to get Twitter user email?

Is there any way to get Twitter user email from Twitter API?
Facebook (FBQL) provides this data in the hashed form so that you can encrypt email and then compare to the hashed one.
I don't think so. If the user wants email from someone, they set that up through the DM settings. That's kind of the point.
You could setup a friendship, and set DMs to email the user.
Twitter API - Create Friendship