24 lines
880 B
Markdown
24 lines
880 B
Markdown
## OpenAPI
|
|
|
|
### API
|
|
|
|
```bash
|
|
# Agent Status
|
|
curl http://localhost:8081/resource/onlineagent/donghuang/
|
|
curl http://localhost:8081/resource/onlineagent/donghuang/logout
|
|
curl http://localhost:8081/resource/onlineagent/donghuang/saybusy
|
|
curl http://localhost:8081/resource/onlineagent/donghuang/sayfree
|
|
curl http://localhost:8081/resource/onlineagent/donghuang/work
|
|
curl http://localhost:8081/resource/onlineagent/donghuang/cancelwork
|
|
|
|
# Call
|
|
curl -X POST -H 'Content-Type: application/json' \
|
|
-d '{"called": "1000"}' \
|
|
'http://localhost:8081/resource/voicecall/donghuang/callout'
|
|
|
|
curl 'http://localhost:8081/resource/voicecall/donghuang/release'
|
|
curl 'http://localhost:8081/resource/voicecall/donghuang/hold'
|
|
curl 'http://localhost:8081/resource/voicecall/donghuang/gethold'
|
|
curl 'http://localhost:8081/resource/voicecall/donghuang/transfer?devicetype=3&transtype=custConfirm'
|
|
```
|