yupoo.contacts.getPublicList

得到指定用户的联系人列表

认证

该方法需要认证,并需要有读的权限.

参数

名称 是否必需 意思
api_key 必需 你的API key
api_sig 必需 签名, 请参考如何签名
user_id 必需 用户ID
per_page 可选 每页的照片数目,默认是1000,最大为1000
page 可选 要返回的页码,默认为1

返回结果例子

<result page="1" perpage="1000" pages="1" total="17">
    <contacts>
        <contact id="2629848" username="hellowang" nickname="halw" icon="http://ico.yupoo.com/hellowang/icon-AF1zQ4pj"/>
        <contact id="2645092" username="460723789" nickname="少钌⒈個伱" icon="http://ico.yupoo.com/460723789_s/icon-AEimkVXz"/>
        <contact id="2637208" username="shawjia" nickname="shawjia" icon="http://ico.yupoo.com/shawjia/icon-AEhNnKX0"/>
        <contact id="2519810" username="husongme" nickname="husongme" icon="http://ico.yupoo.com/husongme/icon-49107920b76d"/>
        <contact id="2543716" username="sjx121156" nickname="sjx121156" icon="http://ico.yupoo.com/sjx121156/icon-195939553f08"/>
        <contact id="2451867" username="belltoy" nickname="belltoy" icon="http://ico.yupoo.com/belltoy/icon-3620494cb67f"/>
        <contact id="21" username="ahua" nickname="阿华" icon="http://ico.yupoo.com/ahua/icon-659254c9b37a"/>
        <contact id="344159" username="bonevv" nickname="骨头歪歪" icon="http://ico.yupoo.com/bonevv/icon-750799827a45"/>
        <contact id="2458765" username="pss0129" nickname="Miss^^" icon="http://ico.yupoo.com/pss0129/icon-AAoGIHMK"/>
        <contact id="69894" username="xiaohui" nickname="小蕙" icon="http://ico.yupoo.com/xiaohui/icon-793295ca6ccf"/>
        <contact id="935441" username="our80" nickname="our80" icon="http://ico.yupoo.com/our80_s/icon-ADQEXTAG"/>
        <contact id="2" username="gofeeling" nickname="gofeeling" icon="http://ico.yupoo.com/gofeeling_s/icon-AAmAThm0"/>
        <contact id="77142" username="iceorange" nickname="小橘子" icon="http://ico.yupoo.com/iceorange/icon-587524c9b3c9"/>
        <contact id="43990" username="chouti" nickname="抽屉" icon="http://ico.yupoo.com/chouti/icon-AE8SOqa4"/>
        <contact id="58" username="cles" nickname="阿舞" icon="http://ico.yupoo.com/cles/icon-111509602f5c"/>
        <contact id="1" username="zola" nickname="Zola" icon="http://ico.yupoo.com/zola/icon-540289501fc4"/>
        <contact id="2606445" username="lmsum" nickname="锥生零" icon="http://ico.yupoo.com/lmsum/icon-ArkSa0mf"/>
    </contacts>
</result>

其中的icon是用户的头像地址,如果没有表示用户没有上传头像。

错误代号

代号 消息 解释
1 User not found 指定的用户不存在