如何邀请MSN,Yahoo的人加入我的应用程序?

时间:2021-01-08 07:37:54

I need to add an invite users functionality to my social networking application so users can invite contacts from their hotmail or yahoo accounts. How do I do this and are there any free open source libraries that do this?

我需要向社交网络应用程序添加邀请用户功能,以便用户可以从他们的Hotmail或yahoo帐户中邀请联系人。我该怎么做,是否有任何免费的开源库来做到这一点?

2 个解决方案

#1


Depending on the service you wish to get the contact information from they might already provide a published API for you.

根据您希望获得的服务,他们可能已经为您提供了已发布的API。

For example, Yahoo has a contact list API you could use: http://developer.yahoo.com/social/rest_api_guide/contact_api.html

例如,Yahoo有一个您可以使用的联系人列表API:http://developer.yahoo.com/social/rest_api_guide/contact_api.html

Google also has one: http://code.google.com/apis/contacts/

谷歌还有一个:http://code.google.com/apis/contacts/

And so does Windows Live: http://msdn.microsoft.com/en-us/library/bb463974.aspx

Windows Live也是如此:http://msdn.microsoft.com/en-us/library/bb463974.aspx

If you need something to work with a service without an API then you might have to ask that user for his username and password, use it temporarily to log into his account, download the contact information and then discard the login details. There are obvious privacy and security issues with this approach, however. Nevertheless, it is used quite frequently by many social networking sites.

如果您需要使用没有API的服务,那么您可能需要询问该用户的用户名和密码,暂时使用它来登录他的帐户,下载联系信息然后丢弃登录详细信息。但是,这种方法存在明显的隐私和安全问题。然而,许多社交网站经常使用它。

The same approach can also be used to retrieve buddy information from instant messaging services. You log in (perhaps using an open source IM API) and get their buddy list and contact details.

同样的方法也可用于从即时消息服务中检索伙伴信息。您登录(可能使用开源IM API)并获取他们的好友列表和联系人详细信息。

#2


Just in case anyone was interested - I would like to share this neat piece of code I found off the web. Its free and very easy to setup and integrate. http://openinviter.com is php based and you can extract email contacts from just about any address book there is.

万一有人感兴趣 - 我想分享我在网上找到的这段简洁的代码。它免费且易于设置和集成。 http://openinviter.com是基于PHP的,您可以从任何地址簿中提取电子邮件联系人。

You just need to have curl set up for this.

你只需要为此设置curl。

#1


Depending on the service you wish to get the contact information from they might already provide a published API for you.

根据您希望获得的服务,他们可能已经为您提供了已发布的API。

For example, Yahoo has a contact list API you could use: http://developer.yahoo.com/social/rest_api_guide/contact_api.html

例如,Yahoo有一个您可以使用的联系人列表API:http://developer.yahoo.com/social/rest_api_guide/contact_api.html

Google also has one: http://code.google.com/apis/contacts/

谷歌还有一个:http://code.google.com/apis/contacts/

And so does Windows Live: http://msdn.microsoft.com/en-us/library/bb463974.aspx

Windows Live也是如此:http://msdn.microsoft.com/en-us/library/bb463974.aspx

If you need something to work with a service without an API then you might have to ask that user for his username and password, use it temporarily to log into his account, download the contact information and then discard the login details. There are obvious privacy and security issues with this approach, however. Nevertheless, it is used quite frequently by many social networking sites.

如果您需要使用没有API的服务,那么您可能需要询问该用户的用户名和密码,暂时使用它来登录他的帐户,下载联系信息然后丢弃登录详细信息。但是,这种方法存在明显的隐私和安全问题。然而,许多社交网站经常使用它。

The same approach can also be used to retrieve buddy information from instant messaging services. You log in (perhaps using an open source IM API) and get their buddy list and contact details.

同样的方法也可用于从即时消息服务中检索伙伴信息。您登录(可能使用开源IM API)并获取他们的好友列表和联系人详细信息。

#2


Just in case anyone was interested - I would like to share this neat piece of code I found off the web. Its free and very easy to setup and integrate. http://openinviter.com is php based and you can extract email contacts from just about any address book there is.

万一有人感兴趣 - 我想分享我在网上找到的这段简洁的代码。它免费且易于设置和集成。 http://openinviter.com是基于PHP的,您可以从任何地址簿中提取电子邮件联系人。

You just need to have curl set up for this.

你只需要为此设置curl。