获取用户注册词典
GET/profilewords/:dgn/:pid
可以以 JSON 格式获取注册单词的列表。
请求
响应
- 200
- 401
- 404
- 500
以 JSON 格式返回注册单词的列表。
API key(service 认证 key 字符串)认证失败时返回。
| 响应体 | 错误情况 |
|---|---|
{"code":"-","message":"can't verify service authorization"} | API key 认证失败时 |
{"code":"-","message":"service authorization has expired: <expirationTime> (<expiresIn>)"} | API key 的有效期已过时 |
未指定路径参数时返回。
| 响应体 | 错误情况 |
|---|---|
{"code":"?","message":"missing dictation grammar file name"} | 未指定连接引擎名称 <dgn> 时 |
{"code":"?","message":"missing profile id"} | 未指定 profileId <pid> 时 |
发生意外异常时返回。
| 响应体 | 错误情况 |
|---|---|
{"code":"?","message":"unexpected exception occurred (<optionalMessage>)"} | 发生意外异常时 |