TcaplusDB WebService API 开始使用

TcaplusDB Webservice API旨在提供web接口给用户使用,让用户直接发送命令即可以在TcaplusDB中提单完成业务/区/表/数据等相关操作,以达到自动化提单或者批量提单的目的,其效果等同于在OMS对应功能页面提单。

快速调试方法(使用CURL命令发送请求)

前提条件:

  1. 获取到正确的access-token

  2. 业务(app_id)、和游戏区(zone_id)、表名(table_name)存在

url http://OMSADDRESS/app/newoms.php/webservice/business/table/truncating?cmd=10004&ip-type=webservicerest&access-token=8d018c3e1ab5c38ce211817232083ec5f298f01f (http://10.125.52.116/app/newoms.php/webservice/business/table/truncating?cmd=10004&ip-type=webservicerest&access-token=8d018c3e1ab5c38ce211817232083ec5f298f01f')
post data {"app_id":"243","zone_id":"1","table_name":"ScoreTable","auto_approve":1,"auto_exec_trans":1}
请求语句 curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d

命令如下:

    curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"app_id":"243","zone_id":"1","table_name":"ScoreTable","auto_approve":1,"auto_exec_trans":1}' 'http://OMSADDRESS/app/newoms.php/webservice/business/table/truncating?cmd=10004&ip-type=webservicerest&access-toke n=8d018c3e1ab5c38ce211817232083ec5f298f01f' (http://10.125.52.116/app/newoms.php/webservice/business/table/truncating?cmd=10004&ip-type=webservicerest&access-token=8d018c3e1ab5c38ce211817232083ec5f298f01f')

results matching ""

    No results matching ""