当前位置:论坛首页 > 第三方应用 > Linux面板插件

API接口使用教程

置顶 精华 发表在 第三方应用2018-12-12 11:48   [复制链接] 167 439614

发表于 2022-3-1 20:56:40 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
使用道具 举报 回复 支持 反对
发表于 2022-2-28 13:34:16 | 显示全部楼层
镖客若水 发表于 2019-9-10 16:57
windows什么时候能提供啊

C#开发宝典- 宝塔API接口-C#版-我们来贡献一个  http://blogs.51diysoft.com/DevDic/Detail?id=2202251017491394

欢迎整理进去。
使用道具 举报 回复 支持 反对
发表于 2022-2-25 11:21:04 | 显示全部楼层
C#开发宝典- 宝塔API接口-C#版-我们来贡献一个  http://blogs.51diysoft.com/DevDic/Detail?id=2202251017491394

欢迎整理进去。
使用道具 举报 回复 支持 反对
发表于 2022-2-25 11:20:32 | 显示全部楼层
子凡 发表于 2018-12-16 00:24
看来有望卖虚拟主机了

C#开发宝典- 宝塔API接口-C#版-我们来贡献一个  http://blogs.51diysoft.com/DevDic/Detail?id=2202251017491394
使用道具 举报 回复 支持 反对
发表于 2022-2-11 09:56:43 | 显示全部楼层
接口返回null 会是什么原因,调用A宝塔可以获取数据,B宝塔返回null
使用道具 举报 回复 支持 反对
发表于 2021-12-24 23:57:18 | 显示全部楼层
本帖最后由 浙江嘉广科技 于 2021-12-25 12:40 编辑

自己写了个调用官方api的python库,供大家参考,https://github.com/adamzhang1987/bt-python-sdk
使用道具 举报 回复 支持 反对
发表于 2021-10-6 16:34:09 | 显示全部楼层
有没有一起开发的,我写到了更改文件内容了,2655906529
使用道具 举报 回复 支持 反对
发表于 2021-8-17 17:53:39 | 显示全部楼层
我的错我的错,函数传值了,结果刚才查了下,居然发现,我没有使用传值变量而是测试时$this->IP."/?getdata="
使用道具 举报 回复 支持 反对
发表于 2021-8-17 17:49:23 | 显示全部楼层
一蜘蛛的天下 发表于 2021-8-17 17:31
你好,table如何增加?官方pdf没有这个参数呢

增加到了数据数组,但是返回的是站点列表?
使用道具 举报 回复 支持 反对
发表于 2021-8-17 17:43:52 | 显示全部楼层
string(753) ""Traceback (most recent call last):\n File \"class/flask_sockets.py\", line 30, in __call__\n handler, values = adapter.match()\n File \"/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py\", line 1945, in match\n raise NotFound()\nwerkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"class/data.py\", line 199, in getData\n data['data']['backup_count'] = SQL.table('backup').where(\"pid=? AND type=?\",(data['data']['id'],type)).count()\nTypeError: string indices must be integers\n""
使用道具 举报 回复 支持 反对
发表于 2021-8-17 17:35:14 | 显示全部楼层
一蜘蛛的天下 发表于 2021-8-17 16:30
Dump

string(668) ""Traceback (most recent call last):\n  File \"class/flask_sockets.py\", line 30,  ...

string(149) "{"where": "", "page": "
1共0条
", "data": "error: near \"order\": syntax error"}"
使用道具 举报 回复 支持 反对
发表于 2021-8-17 17:31:05 | 显示全部楼层
一蜘蛛的天下 发表于 2021-8-17 16:30
Dump

string(668) ""Traceback (most recent call last):\n  File \"class/flask_sockets.py\", line 30,  ...

你好,table如何增加?官方pdf没有这个参数呢

  1.         $数据数组 = array("webname"=>"{"domain":"adds.irop.cn","domainlist":[],"count":0}",
  2.                 "path"=>"/www/wwwroot/adds.irop.cn",
  3.                 "type_id"=>"0",
  4.                 "type"=>"PHP",
  5.                 "version"=>"56",
  6.                 "port"=>"80",
  7.                 "ps"=>"备注",
  8.                 "ftp"=>"true",
  9.                 "ftp_username"=>"add_irop_cns",
  10.                 "ftp_password"=>"add_irop_cns",
  11.                 "sql"=>"MySQL",
  12.                 "datauser"=>"add_irop_cn",
  13.                 "codeing"=>"utf8",
  14.                 "datapassword"=>"add_irop_cn"
  15.         );
  16. 198.16.135:8888/site?action=AddSite
复制代码
使用道具 举报 回复 支持 反对
发表于 2021-8-17 16:32:41 | 显示全部楼层
一蜘蛛的天下 发表于 2021-8-17 16:30
Dump

string(668) ""Traceback (most recent call last):\n  File \"class/flask_sockets.py\", line 30,  ...

如何解决?
使用道具 举报 回复 支持 反对
发表于 2021-8-17 16:30:50 | 显示全部楼层
Dump

string(668) ""Traceback (most recent call last):\n  File \"class/flask_sockets.py\", line 30, in __call__\n    handler, values = adapter.match()\n  File \"/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py\", line 1945, in match\n    raise NotFound()\nwerkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"class/data.py\", line 185, in getData\n    table = get.table\nAttributeError: 'dict_obj' object has no attribute 'table'\n""

POST/GET请求中缺必table参数  发表于 2021-8-17 16:31
使用道具 举报 回复 支持 反对
发表于 2021-8-17 12:01:41 | 显示全部楼层
ssl 没得配置
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表