将资源参数写入书页Extra Data
<p><strong>服务:</strong>api-cloud
<strong>API: </strong><code>cloud-api1.51wanxue.com/api-cloud/page/bind/extraData</code>
<strong>请求方式:</strong>POST
<strong>入参方式:</strong> Body form data方式
<strong>api开发者:</strong> 宇佳
<strong>简要描述:</strong>
客户将其服务器上的资源参数写入其私有资源库书页的xtra Data,为资源与书页绑定做准备(需要登录授权)
<strong>请求样例:</strong></p>
<pre><code>{
&quot;pageId&quot; : &quot;123&quot;,
&quot;data&quot; : &quot;六地精3术天下无敌&quot;
}</code></pre>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">pageId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>书页id</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">String</td>
<td>所需绑定的自定义信息</td>
</tr>
</tbody>
</table>
<p><strong>备注:</strong></p>
<p><strong>new! </strong></p>
<p><strong>返回示例</strong></p>
<pre><code class="language-json">{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;ok&quot;,
&quot;data&quot;: 1
}</code></pre>
<p><strong>返回数据参数说明 </strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">int</td>
<td>请求返回码 0(表示成功)</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">String</td>
<td>返回值为“ok”时代表请求成功,否则为请求失败的原因</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">int</td>
<td>1表示成功</td>
</tr>
</tbody>
</table>