admin 发表于 2025-7-28 11:37:25

利用API对discuz帖子进行外部调用

<ul type="1" class="litype_1"><li>
<ul type="1" class="litype_1"><li style="clear: both;"><p>discuz登录后台</p><p>&nbsp; &nbsp; &nbsp;前台登录</p><p style="margin-top: 5px; margin-bottom: 5px;"><a class="exp-image-wraper" style="color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default pic-cursor-pointer" alt="discuz中api制作方法,帖子接口。" src="https://www.amitufo.net/source/plugin/aljtpbdh/img/20250728/1753673797-8643.jpg" _src="source/plugin/aljtpbdh/img/20250728/1753673797-8643.jpg" style="max-width: 100%;"></a></p></li><li style="clear: both;"><p style="margin-top: 5px; margin-bottom: 5px;">2</p><p>点击‘管理中心’进入后台&nbsp;</p><p><br></p><p>&nbsp; 如下图</p><p style="margin-top: 5px; margin-bottom: 5px;"><a class="exp-image-wraper" style="color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default pic-cursor-pointer" alt="discuz中api制作方法,帖子接口。" src="https://www.amitufo.net/source/plugin/aljtpbdh/img/20250728/1753673798-7077.jpg" _src="source/plugin/aljtpbdh/img/20250728/1753673798-7077.jpg" style="max-width: 100%;"></a></p></li><li style="clear: both;"><p style="margin-top: 5px; margin-bottom: 5px;">3</p><p>后台登录界面&nbsp;</p><p>&nbsp; 密码 &nbsp;用户名 &nbsp; 和前台一样</p><p style="margin-top: 5px; margin-bottom: 5px;"><a class="exp-image-wraper" style="color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default pic-cursor-pointer" alt="discuz中api制作方法,帖子接口。" src="https://www.amitufo.net/source/plugin/aljtpbdh/img/20250728/1753673799-4530.jpg" _src="source/plugin/aljtpbdh/img/20250728/1753673799-4530.jpg" style="max-width: 100%;"></a></p></li><li style="clear: both;"><p style="margin-top: 5px; margin-bottom: 5px;">4</p><p>下面我举热门帖子来给大家讲&nbsp;</p><p>&nbsp; &nbsp; 最新帖子显示在其他网站的代码(api)</p><p>我要现实下面图中的内容----</p><p style="margin-top: 5px; margin-bottom: 5px;"><a class="exp-image-wraper" style="color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default pic-cursor-pointer" alt="discuz中api制作方法,帖子接口。" src="https://www.amitufo.net/source/plugin/aljtpbdh/img/20250728/1753673799-9146.jpg" _src="source/plugin/aljtpbdh/img/20250728/1753673799-9146.jpg" style="max-width: 100%;"></a></p></li><li style="clear: both;"><p style="margin-top: 5px; margin-bottom: 5px;">5</p><p>后台登录进入后</p><p>点击‘门户’--》模块管理--》数据调用</p><p style="margin-top: 5px; margin-bottom: 5px;"><a class="exp-image-wraper" style="color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default pic-cursor-pointer" alt="discuz中api制作方法,帖子接口。" src="https://www.amitufo.net/source/plugin/aljtpbdh/img/20250728/1753673801-3822.jpg" _src="source/plugin/aljtpbdh/img/20250728/1753673801-3822.jpg" style="max-width: 100%;"></a></p></li><li style="clear: both;"><p style="margin-top: 5px; margin-bottom: 5px;">6</p><p>然后 &nbsp;选择‘所属页面’和 &nbsp;’模块分类‘</p><p><br></p><p>点击‘添加调用’</p><p style="margin-top: 5px; margin-bottom: 5px;"><a class="exp-image-wraper" style="color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default pic-cursor-pointer" alt="discuz中api制作方法,帖子接口。" src="https://www.amitufo.net/source/plugin/aljtpbdh/img/20250728/1753673802-6077.jpg" _src="source/plugin/aljtpbdh/img/20250728/1753673802-6077.jpg" style="max-width: 100%;"></a></p></li><li style="clear: both;"><p style="margin-top: 5px; margin-bottom: 5px;">7</p><p>出现弹出框&nbsp;</p><p>并进行选择</p><p>我们要的最新帖子</p><p>点击‘确定’</p><p style="margin-top: 5px; margin-bottom: 5px;"><a class="exp-image-wraper" style="color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default pic-cursor-pointer" alt="discuz中api制作方法,帖子接口。" src="https://www.amitufo.net/source/plugin/aljtpbdh/img/20250728/1753673803-6368.jpg" _src="source/plugin/aljtpbdh/img/20250728/1753673803-6368.jpg" style="max-width: 100%;"></a></p></li><li style="clear: both;"><p style="margin-top: 5px; margin-bottom: 5px;">8</p><p>出现下面列表&nbsp;</p><p>&nbsp; 列表中 &nbsp;点击‘外部调用’</p><p style="margin-top: 5px; margin-bottom: 5px;"><a class="exp-image-wraper" style="color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default pic-cursor-pointer" alt="discuz中api制作方法,帖子接口。" src="https://www.amitufo.net/source/plugin/aljtpbdh/img/20250728/1753673803-1676.jpg" _src="source/plugin/aljtpbdh/img/20250728/1753673803-1676.jpg" style="max-width: 100%;"></a></p></li><li style="clear: both;"><p style="margin-top: 5px; margin-bottom: 5px;">9</p><p>出现弹出框</p><p>&nbsp;弹出框中 的输入框内容复制 &nbsp; 这就是api &nbsp;</p><p>如下:</p><p><br></p><p></p><div></div><p style="margin-top: 5px; margin-bottom: 5px;"></p><p><br></p><p>把它复制后</p><p style="margin-top: 5px; margin-bottom: 5px;"><a class="exp-image-wraper" style="color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default pic-cursor-pointer" alt="discuz中api制作方法,帖子接口。" src="https://www.amitufo.net/source/plugin/aljtpbdh/img/20250728/1753673804-1179.jpg" _src="source/plugin/aljtpbdh/img/20250728/1753673804-1179.jpg" style="max-width: 100%;"></a></p></li><li style="clear: both;"><p style="margin-top: 5px; margin-bottom: 5px;">10</p><p>网站中的粘贴就行</p><p><br></p><p>我用简单的名为api.html 文件 &nbsp;</p><p>保存</p><p style="margin-top: 5px; margin-bottom: 5px;"><a class="exp-image-wraper" style="color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default pic-cursor-pointer" alt="discuz中api制作方法,帖子接口。" src="https://www.amitufo.net/source/plugin/aljtpbdh/img/20250728/1753673805-7300.jpg" _src="source/plugin/aljtpbdh/img/20250728/1753673805-7300.jpg" style="max-width: 100%;"></a></p><p style="margin-top: 5px; margin-bottom: 5px;"><a class="exp-image-wraper" style="color: rgb(45, 100, 179); position: relative; display: block; float: left;"><img class="exp-image-default pic-cursor-pointer" alt="discuz中api制作方法,帖子接口。" src="https://www.amitufo.net/source/plugin/aljtpbdh/img/20250728/1753673807-8927.jpg" _src="source/plugin/aljtpbdh/img/20250728/1753673807-8927.jpg" style="max-width: 100%;"></a></p></li><li>
</li></ul>

</li></ul>
页: [1]
查看完整版本: 利用API对discuz帖子进行外部调用