计算引擎engine2x的枚举获取api

直接代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
API=>:POST 'http://ip:port/api/portal/operat' Content-Type: application/x-www-form-urlencoded ac=get_enum_items_by_id id=d6bf6e1bf7f34a59b9a8bca61a7ef9f9
 
 
 
 
// ajax
var settings = { "url": "http://ip:port/api/portal/operate", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/x-www-form-urlencoded" }, "data": { "ac": "get_enum_items_by_id", "id": "858194c401e648d28dc456cd813a9a68" } };
$.ajax(settings).done(function (response) { console.log(response); });
 
 
 
// curl
curl --location 'http://ip:port/api/portal/operate' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'ac=get_enum_items_by_id' \ --data-urlencode 'id=858194c401e648d28dc456cd813a9a68'
 
 
 
// python
import requests url = "http://ip:port/api/portal/operate" payload = 'ac=get_enum_items_by_id&id=5bd737c793e244c5bf7f0e07255bf063' headers = { 'Content-Type': 'application/x-www-form-urlencoded' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)

done  

 

posted @   liskov_design  阅读(2)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
历史上的今天:
2017-11-13 北京地铁换乘算法(二维坐标系,图的深度搜索)开源下载Android源码、性能最优解,附带C#版本
点击右上角即可分享
微信分享提示