简体   繁体   English

XMPP iPhone的用户个人资料

[英]user profile from XMPP iPhone

I am using XMPP for chatting in my iPhone application, I need to retrieve the profile of every user in buddy list, like phone number, street address etc. 我正在使用XMPP在iPhone应用程序中聊天,我需要检索好友列表中每个用户的个人资料,例如电话号码,街道地址等。

How can I get started? 我该如何开始?

While XEP-54 can be used for this purpose, PLEASE do not spam the network by making vcard-temp requests for everyone on your roster every time your client logs in. Since you haven't told us what client library you're using, all we can do is provide you with the protocol you need to send: 尽管XEP-54可以用于此目的,但是请不要在每次客户端登录时都对名单中的每个人都发出vcard-temp请求,从而不会向网络发送垃圾邮件。由于您没有告诉我们您使用的是哪个客户端库,我们能做的就是为您提供您需要发送的协议:

<iq id='v1'
    type='get'>
  <vCard xmlns='vcard-temp'/>
</iq>

Note that XEP-54 is about to be obsoleted by XEP-292 , but it will take several years for that transition to take place. 请注意,XEP-54将被XEP-292淘汰,但是过渡需要花费几年的时间。

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

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