企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~[api] get:http://thinkdata.northwith.com/device/admin_pppoe_notice_re *string:ip=x.x.x.x#IP *string:api_token=xxxxxx#通信token <<< success { "code": 200, "msg": "成功", "data": [] } <<< error { "code": 0, "msg": "失败:xxx", "data": [] } ~~~ demo链接: [http://thinkdata.northwith.com/device/admin\_pppoe\_notice\_re?ip=1.1.1.1&api\_token=qwertyuiop](http://thinkdata.northwith.com/device/admin_pppoe_notice_re?ip=1.1.1.1&api_token=qwertyuiop) 注意替换参数值 备注:支持post传参方式 额外陈述: 方法1:直接get请求如下地址 [http://thinkdata.northwith.com/device/admin\_pppoe\_notice\_re?ip=1.1.1.1&api\_token=qwertyuiop](http://thinkdata.northwith.com/device/admin_pppoe_notice_re?ip=1.1.1.1&api_token=qwertyuiop) ***** 方法2【推荐】:如果您是jquery,GET方式如下 ``` var settings = { "url": "http://thinkdata.northwith.com/device/admin_pppoe_notice_re?ip=1.1.1.1&api_token=qwertyuiop" , "method": "GET" , "timeout": 0 }; $.ajax(settings).done(function (response) { console.log(response); }); ``` ***** 方法3:如果您是jquery,POST方法如下 ``` var form = new FormData(); form.append("api_token", "qwertyuiop"); form.append("ip", "1.1.1.1"); var settings = { "url": "http://thinkdata.northwith.com/device/admin_pppoe_notice_re?ip=1.1.1.1&=qwertyuiop" , "method": "POST" , "timeout": 0 , "processData": false , "mimeType": "multipart/form-data" , "contentType": false, "data": form }; $.ajax(settings).done(function (response) { console.log(response); }); ```