I would try UCWA API by sending a post request to a client. Here's the doc
After app initialization I create my request.
const request = require('request-promise');
...
let URL= "https://************.lync.com"
let req= {
url: URL + body.communication.startMessaging,
method: 'POST',
headers: {
"Accept": "application/json; charset=utf-8",
"authorization": "Bearer " + APP.Token
},
body: {
importance:"Normal",
sessionContext:"33dc0ef6-0570-4467-bb7e-49fcbea8e944",
subject:"Sample Subject Line",
telemetryId:null,
to:"sip:hamza@opencircle.co",
operationId:"5028e824-2268-4b14-9e59-1abad65ff393"
},
json:true
}
return new Promise((resolve,reject)=> {
console.log(req);
request(req).then(res=> {console.log("OK",res)},err=> console.log("ERRoR",err.message)).catch(err=>console.log("ERROR CATCH",err));
})
I get this error message
'400 - {"code":"BadRequest","subcode":"CallbackUriUnreachable","message":"Exception of type \'PlatformService.Web.ValidationException\' was thrown.","debugInfo":{"errorReportId":"a8034d8ad14c4b0695f7f78dc12c19fe"}}'