ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的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); }); ```