我正在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"
答案 0 :(得分:0)
https://www.npmjs.com/package/webex-training-center-api
您可以使用我为webex-training-center设计的此api。