已解决 喧喧API调用出错

目的是写pythonAPI实现在禅道内发消息的功能

后台-》二次开发-》接口文档-》内置页面接口内有很多API可用,但是聊天-》喧喧内的API,一直会报错:

response = requests.get(url     = 'http://192.168.125.234:8080/zentao/im-sysServerStart.json',
                        headers = HEARERS)
print(response)
print(response.content)

Fatal error:
Uncaught Error: Call to undefined method router::output() in /opt/zbox/app/zentao/extension/xuan/im/control.php:25
Stack trace:
/opt/zbox/app/zentao/framework/base/router.class.php(2247): im->sysServerStart()
/opt/zbox/app/zentao/framework/base/router.class.php(2271): baseRouter->loadModule()
/opt/zbox/app/zentao/www/index.php(76): baseRouter->outputPage()
{main}
thrown in /opt/zbox/app/zentao/extension/xuan/im/control.php on line 25

10:09:16 Uncaught Error: Call to undefined method router::output() in /opt/zbox/app/zentao/extension/xuan/im/control.php:25
Stack trace:
/opt/zbox/app/zentao/framework/base/router.class.php(2247): im->sysServerStart()
/opt/zbox/app/zentao/framework/base/router.class.php(2271): baseRouter->loadModule()
/opt/zbox/app/zentao/www/index.php(76): baseRouter->outputPage()
{main}
thrown in /opt/zbox/app/zentao/extension/xuan/im/control.php on line 25 when visiting im-sysServerStart

禅道版本 18.5 源码包
操作系统 Ubuntu
客户端浏览器

提问者: 汤晓 悬赏:5 日期: 2023-08-15 11:37:27 答案:1 点击:169

获取技术支持

QQ:2845263372电话:18562550650
设置备注
答案列表
最佳答案
2023/08/15

需要在禅道中添加应用,而且走的是api.php

可以参考下这篇手册:https://www.zentao.net/book/zentaopms/301.html

如果有问题,也可以联系商务同事刘璐(QQ:2845263372)邀请加入二次开发群进行沟通的。