获取全部 联系人列表
<h5>全部联系人详细信息 包括 (外部联系人788 \ 内部1688 )</h5>
<pre><code>//函数名称 GetAllUserCache
//功能: 即时获取全部用户列表 返回utf8格式json
//pWXID: 当前登录企微号的 uid 1688开头
//返回值: json列表
const char* GetAllUserCache(const char* pWXID);
调用:
const char* p = GetAllUserCache(&quot;1688850475043829&quot;);
//函数名称 GetAllUserCache1
//功能: 等价于 GetAllUserCache, 多加了一个 返回json长度的参数
//nLen: 返回 json的长度, 传入一个 int*
const char* GetAllUserCache1(const char* pWXID, int* nLen);
调用:
int nlen=0; //用于保存返回json的长度
const char* p = GetAllUserCache1(&quot;1688850475043829&quot;, &amp;nlen);
</code></pre>
<p>全部联系人 返回 json 格式如下 </p>
<pre><code>{ÁõСºì
&quot;type&quot;:4000,
&quot;fromQw&quot;:&quot;1688851068565111&quot;,
&quot;data&quot;:[
{
&quot;Describe&quot;: &quot;描述&quot;,
&quot;Remark&quot;: &quot;备注&quot;,
&quot;add_time&quot;: &quot;微信好友添加时间&quot;,
&quot;english_name&quot;: &quot;啾啾&quot;,
&quot;extend_user_id&quot;: &quot;扩展id FeiFei&quot;,
&quot;head_url&quot;: &quot;https://wework.qpic.cn/bizmail/GmnAgN4Deb4UZEfLMQibAlUO4wYuxfZOkFh0HuZ1l0icCMWXOUDsAzgQ/60&quot;,
&quot;mobile&quot;: &quot;&quot;,
&quot;name&quot;: &quot;肥肥4&quot;,
&quot;phone1&quot;: &quot;电话13797862121&quot;,
&quot;position&quot;: &quot;&quot;,
&quot;real_name&quot;: &quot;刘小红实名&quot;,
&quot;sex&quot;: &quot;0&quot;,
&quot;uid&quot;: &quot;1688849973008744&quot;,
&quot;unionid&quot;: &quot;ozynqsvmTZzh-ucOfvPu4OYUMSxw&quot;
},
{
&quot;Describe&quot;: &quot;&quot;,
&quot;Remark&quot;: &quot;&quot;,
&quot;add_time&quot;: &quot;&quot;,
&quot;english_name&quot;: &quot;香蕉&quot;,
&quot;extend_user_id&quot;: &quot;TianMei&quot;,
&quot;head_url&quot;: &quot;https://wework.qpic.cn/bizmail/8eDoibbJ7LREOhutmYTQFLDK5sDMGCzuKzrdApX7Q6NfB8NCHbVVp7Q/60&quot;,
&quot;mobile&quot;: &quot;&quot;,
&quot;name&quot;: &quot;甜美4&quot;,
&quot;phone1&quot;: &quot;&quot;,
&quot;position&quot;: &quot;&quot;,
&quot;real_name&quot;: &quot;刘甜美&quot;,
&quot;sex&quot;: &quot;0&quot;,
&quot;uid&quot;: &quot;1688849973008751&quot;,
&quot;unionid&quot;: &quot;ozynqsrNYxuou-OAtk0WOgVYY7yM&quot;
},
{
&quot;Describe&quot;: &quot;&quot;,
&quot;Remark&quot;: &quot;111&quot;,
&quot;add_time&quot;: &quot;1635236180&quot;,
&quot;english_name&quot;: &quot;&quot;,
&quot;extend_user_id&quot;: &quot;&quot;,
&quot;head_url&quot;: &quot;http://wx.qlogo.cn/mmhead/PiajxSqBRaEKPKGhU0rstpibj0eUT0gN1ZAqpOiajTuMpSRItOXKibAMtw/46&quot;,
&quot;mobile&quot;: &quot;&quot;,
&quot;name&quot;: &quot;不回头的人生路&quot;,
&quot;phone1&quot;: &quot;null&quot;,
&quot;position&quot;: &quot;&quot;,
&quot;real_name&quot;: &quot;&quot;,
&quot;sex&quot;: &quot;0&quot;,
&quot;uid&quot;: &quot;7881300911065402&quot;,
&quot;unionid&quot;: &quot;ozynqssmbDzofMgWMP_TlDM_XqRM&quot;
},
{
&quot;Describe&quot;: &quot;&quot;,
&quot;Remark&quot;: &quot;&quot;,
&quot;add_time&quot;: &quot;0&quot;,
&quot;english_name&quot;: &quot;&quot;,
&quot;extend_user_id&quot;: &quot;&quot;,
&quot;head_url&quot;: &quot;http://wx.qlogo.cn/mmhead/Q3auHgzwzM718XxRQsuRFprEvxoLh0TS6RP2T9FA96xpnEGgcacgcA/46&quot;,
&quot;mobile&quot;: &quot;&quot;,
&quot;name&quot;: &quot;王旭东&quot;,
&quot;phone1&quot;: &quot;15001786861&quot;,
&quot;position&quot;: &quot;&quot;,
&quot;real_name&quot;: &quot;&quot;,
&quot;sex&quot;: &quot;0&quot;,
&quot;uid&quot;: &quot;7881301231966392&quot;,
&quot;unionid&quot;: &quot;&quot;
}
]
}</code></pre>