processDeeplink
processDeeplink(url: MXOValue<URL | string>): Promise<MXOResult<null>>
Example of usage:
const url = {
value : 'https://exampleUrl'
}
MedalliaMXO.processDeeplink(url)
.then(mxoResult => {
if (mxoResult.value && mxoResult.value.apiName) {
// error case
console.error(mxoResult.value)
} else {
// success case
console.log("Processed deep link")
}
})
.catch(error => {
console.error(error)
})
try {
const url : MXOValue = {
value : 'https://exampleUrl'
}
const {value} = await MedalliaMXO.processDeeplink(url)
if (value && value.apiName) {
// error case
console.error(value)
} else {
// success case
console.log("Processed deep link")
}
} catch (error) {
console.error(error)
}