我正在 developer.cisco.com 开始基本的 Cisco API 培训。在尝试验证 Webex API 以推进练习时。我输入:
curl https://api.ciscospark.com/v1/messages -X POST -H "Authorization:Bearer YW ... 46" --data "toPersonEmail=mauricio9991@gmail.com" --data "text=Hi%20from%20DevNet"
但是,我收到此错误:
{"message":"Failed to create room.","errors":[{"description":"Failed to create room."}],"trackingId":"ROUTER_5D6FA925-CB89-01BB-5BBD-C02E340A5BBD"}
我正在学习编码和 API。
我不是开发人员。我正在学习 CCNA,并且开始学习网络 API。已创建 Webex 团队帐户。
假设显示如下结果:
"id":"Y2l...mNh",
"roomId":"Y2l...WMy",
"toPersonEmail":"someone@cisco.com",
"roomType":"direct",
"text":"Hi from DevNet",
"personId":"Y2l...ODc",
"personEmail":"labs@chatbot.land",
"created":"2018-12-13T23:32:43.377Z"