curl --location --request POST 'http://qiyukf.com/openapi/robot/session/create?appKey=&time=&checksum=' \
--header 'Content-Type: application/json' \
--data-raw '{
"uid": "string",
"productId": "string",
"fromType": "string",
"robotId": 0,
"welcomeTemplateId": 0,
"questionTemplateId": "string",
"fromPage": "string"
}'
{
"code": 200,
"message": "哈哈",
"data": {
"sessionId": 62927,
"userId": 43412123,
"robotId": 34351,
"robotName": "机器人昵称",
"robotLogoUrl": "http://ysf.nosdn.qiyukf.com/xxxxx",
"welcome": {
"msgType": "text",
"msgBody": {
"content": "这是欢迎语"
}
},
"commonQuestions": {
"questionGuide": "常见问题引导语文案",
"questionList": [
{
"id": 243244,
"question": "常见问题1",
"type": 1
}
]
}
}
}