墨筑通对接文档


接口说明

<h5>说明</h5> <h2>登录密码都必须进行md5加密后请求</h2> <p><code>除了登录接口之外,所有接口的请求头,必须加上参数Content-Type;及tokenAuth; 登录接口接口必须加上参数Content-Type;登录密码都必须进行md5加密后请求。</code></p> <h5>请求头参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">Content-Type</td> <td style="text-align: left;">application/x-www-form-urlencoded</td> </tr> <tr> <td style="text-align: left;">tokenAuth</td> <td style="text-align: left;">登录接口返回参数,由系统自动生成</td> </tr> </tbody> </table> <h5>返回实例</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">message</td> <td style="text-align: left;">返回信息</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">返回数据</td> </tr> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">返回码</td> </tr> </tbody> </table> <p><code>code正常返回为200,返回500则是参数问题,返回400是访问地址,访问请求,访问格式匹配,访问错误等。返回402是tokenAuth令牌错误。返回403这是令牌过期。 令牌的有效时间为24小时(86400秒)。</code></p> <h5>返回示例</h5> <pre><code>{ &amp;quot;message&amp;quot;: &amp;quot;令牌错误&amp;quot;, &amp;quot;code&amp;quot;: 402, &amp;quot;data&amp;quot;: &amp;quot;&amp;quot; }</code></pre> <pre><code>{ &amp;quot;message&amp;quot;: &amp;quot;令牌过期&amp;quot;, &amp;quot;code&amp;quot;: 403, &amp;quot;data&amp;quot;: &amp;quot;&amp;quot; }</code></pre> <pre><code>{ &amp;quot;message&amp;quot;: &amp;quot;地址错误&amp;quot;, &amp;quot;code&amp;quot;: 400, &amp;quot;data&amp;quot;: &amp;quot;&amp;quot; }</code></pre> <pre><code>{ &amp;quot;message&amp;quot;: &amp;quot;查询成功&amp;quot;, &amp;quot;code&amp;quot;: 200, &amp;quot;data&amp;quot;: &amp;quot;&amp;quot; }</code></pre>

页面列表

ITEM_HTML