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