多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## Json format Uri [http://srs.wstaichi.com/api/data/get?key=error](http://srs.wstaichi.com/api/data/get?key=error) ## save data Request uri: ~~~ http://srs.wstaichi.com/api/data/set ~~~ POST Params: | Field | Value | |----------|-------------:| | key | vanc、video、 audio | | data | json format, PID is required | > if key is vanc ,the data is two-dimensional array [key为vanc时,data是个二维数据json encdoe ] Demo +++ get:/api/data/set *key=test # vanc、video、 audio *data={"a1":1,"a2":"tset",'PID':'t1'}# json data +++ also support get request,suggest use POST ~~~ /api/data/set?key=test&data=%7B%22a1%22%3A100%2C%22b1%22%3A%22tset%22%7D ~~~ PHP demo ~~~ echo 'http://srs.wstaichi.com/api/data/set?key=test&data='.urlencode(json_encode(['a1'=>100,'b1'=>'tset']));exit; ~~~ ## Get Data Request Uri: ~~~ http://srs.wstaichi.com/api/data/get ~~~ GET Params | Field | Value | |----------|-------------:| | key | vanc、video、 audio | Api Demo +++ get:/api/data/get *key=test # vanc、video、 audio +++ Success Return Infomation. ~~~ { code:200, msg:"save success" } ~~~