问卷星开放文档

问卷星开放文档


2.6.12 添加标签[1005202]

<p>[TOC]</p> <h1>接口地址</h1> <p>生产环境:<code>https://www.wjx.cn/openapi/contacts.aspx</code></p> <ul> <li> <h1>2.6.12.1 请求参数格式</h1> </li> </ul> <table> <thead> <tr> <th style="text-align: left;">参数</th> <th style="text-align: left;">参数名</th> <th>类型</th> <th>必需</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">corpid</td> <td style="text-align: left;">通讯录/联系人编号</td> <td>string</td> <td>是</td> <td>通讯录/联系人编号:子账户用户名:可从管理界面中获取;问卷星自建通讯录需要填写,企微通讯录无需填写</td> </tr> <tr> <td style="text-align: left;">is_radio</td> <td style="text-align: left;">标签类型(是否单选)</td> <td>bool</td> <td>否</td> <td>0或false:多选&lt;br&gt;1或true:单选&lt;br&gt;默认值为0,默认为0</td> </tr> <tr> <td style="text-align: left;">child_names</td> <td style="text-align: left;">标签列表</td> <td>string</td> <td>是</td> <td>组和标签用‘/’隔开,例如:学历/本科;年龄/18-35</td> </tr> </tbody> </table> <ul> <li> <p>示例请求参数:</p> <pre><code class="language-csharp">Content-Type:application/json {   &amp;quot;appid&amp;quot;: &amp;quot;907&amp;quot;,   &amp;quot;corpid&amp;quot;: &amp;quot;org0000000907&amp;quot;,   &amp;quot;is_radio&amp;quot;: &amp;quot;1&amp;quot;,   &amp;quot;child_names&amp;quot;: &amp;quot;[\&amp;quot;123/1002\&amp;quot;,\&amp;quot;123/1004\&amp;quot;]&amp;quot;,   &amp;quot;sign&amp;quot;: &amp;quot;e3647ce8c121089ff5adbc5f22701ea84a417d65&amp;quot;,   &amp;quot;action&amp;quot;: &amp;quot;1005202&amp;quot;,   &amp;quot;ts&amp;quot;: 1583812686 }</code></pre> </li> <li> <h1>2.6.12.2 响应参数列表</h1> </li> </ul> <table> <thead> <tr> <th style="text-align: left;">参数</th> <th style="text-align: left;">参数名</th> <th>类型</th> <th>必需</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">result</td> <td style="text-align: left;">返回状态</td> <td>bool</td> <td>是</td> <td>true代表成功</td> </tr> <tr> <td style="text-align: left;">errormsg</td> <td style="text-align: left;">返回信息</td> <td>string</td> <td>否</td> <td>失败返回具体信息</td> </tr> </tbody> </table> <p>示例响应参数1:</p> <pre><code class="language-csharp">{ &amp;quot;result&amp;quot;: true }</code></pre> <p>示例响应参数2:</p> <pre><code class="language-csharp">{ &amp;quot;result&amp;quot;: false, &amp;quot;errormsg&amp;quot;: &amp;quot;参数错误&amp;quot; }</code></pre>

页面列表

ITEM_HTML