09-04-2019 06:06 PM
Hello Everyone,
I am trying to complete an exercise at developer.cisco.com for API introduction, for this I register myself at developer.webex.com. I accessed to documentation>API reference>People>get my own details, after that I copy my Authentication bearer and I tried the exercise at developer.cisco.com and entered the command:
curl https://api.ciscospark.com/v1/messages -X POST -H "Authorization:Bearer Zm...4a46" --data "toPersonEmail=myemail@gmail.com" --data "text=Hi%20from%20DevNet"
I received the error:
"Failed to create room.","errors":[{"description":"Failed to create room."}],"trackingId":"ROUTER_5D704BDE-CC60-01BB-578F-BEAB7160578F"}
Please, provide me some guidance to verify why this error is happening, so I can advance with my learning process.
Thanks a lot.
12-17-2019 01:21 PM
If you're trying to send message to yourself, it will not work. Try and to set "toPersonEmail" to a different WebEx Teams contact.
12-27-2019 07:41 PM
This is what works:
curl -H "Authorization: Bearer INSERT_ACCESS_CODE_HERE" 'https://api.ciscospark.com/v1/messages' --data 'toPersonEmail=INSERT_EMAIL_HERE --data 'text=Testing 1,2,3. Just Joe Smith working on API. Please disregard'
And remember to send it to someone with a Cisco email, other than yourself.
05-02-2020 05:26 PM
Good, they must update the procedure
05-26-2020 07:06 PM
curl -H "Authorization:Bearer MTgxOGE3OTMtMmNkNS00Y2ZiLTkxMDQtOWZlNTM1ZTk2OGU4YTcxMjUwYTUtYTUy_PF84_12a1c6a5-7661-4b6c-a7a4-e9d28777da24" "https://api.ciscospark.com/v1/messages" --data "toPersonEmail=xxxxxxxxx@gmail.com" --data "text=Hi%20from%20DevNet"
{"message":"Failed to create room.","errors":[{"description":"Failed to create room."}],"trackingId":"ROUTER_5ECDC7E5-CB76-01BB-4D08-B3098C3B4D08"}
Help me please.
05-28-2020 07:27 PM
The step will works if you send the messages other than to yourself
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: