简体   繁体   English

从gmail导入朋友并向他们发送消息

[英]Imports friends from gmail and send them a message

i am working on app that send an invitation to user. 我正在开发向用户发送邀请的应用程序。 i already post a message on friends facebook wall but now i wish to send invite to gmail user too 我已经在朋友的Facebook墙上发布了一条消息,但现在我也希望向gmail用户发送邀请

i want to perform following task from my app. 我想从我的应用程序执行以下任务。

  1. Import all contact from my gmail 从我的Gmail导入所有联系人
  2. Select all of them and send them a message with download link of my app. 选择所有这些人,并向他们发送一条消息,其中包含我的应用程序的下载链接。

i follow This Tutorial but with the help of this i just can import friends it not allow me to select all of them and send them message with download link of my app 我按照本教程进行操作,但是在此帮助下,我可以导入朋友,但不允许我选择所有朋友,并向他们发送带有我的应用程序下载链接的消息

need guidance from my seniors. 需要我前辈的指导。 May my question rate as duplicated or closed but i didn't fine any useful material from internet. 可以将我的问题率重复或关闭,但是我没有从互联网上罚款任何有用的材料。

Regards! 问候!

Adnan 阿德南

Take a look at this , it is a link to their contacts API. 看看这个 ,这是他们的联系人API的链接。 Especially on the section titled: Retrieving all contacts . 特别是在标题为: 检索所有联系人的部分上。 The sections below this one may help also, they are titled Retrieving contacts using query parameters, and Retrieving a single contact. 这一节下面的部分可能也有帮助,它们的标题为使用查询参数检索联系人,以及检索单个联系人。

这是获取所有gmail联系人示例链接的示例 ,您可以在此使用他们的邮件ID向他们发布消息

For anyone still interested in this, I don't recommend using Google OAuth 2.0 API in Android. 对于仍然对此感兴趣的任何人,我建议您不要在Android中使用Google OAuth 2.0 API。 It's a lot of work to do, and is intended for a general solution to all web/mobile apps. 这是一项繁重的工作,旨在为所有Web /移动应用程序提供通用解决方案。

I think Google Invites API is exactly what's needed here, check this tutorial . 我认为Google Invites API正是这里所需要的,请查看本教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM