接上篇内容:
4.使用专业版进行体验
4.1账号和密码设置
·SA服务启动后,如果未绑定,需要发送以下请求对SA进行绑定:
curl -X POST -d '{"device": {"model": "smart_assistant"}}' http://localhost:37965/api/devices
·绑定成功后返回以下内容:
{
"status": 0,
"reason": "成功",
"data": {
"device_id": 1,
"plugin_url": "",
"user_info": {
"user_id": 1,
"role_infos": null,
"account_name": "",
"nickname": "wyqicai",
"token": "MTYzNTMxOTE1M3xOd3dBTkVoRE5WRXpTME5CV0VrMFVFOVFWa0pJUjA1UFNVRklRM