When we call the same Xtend M3 API in MEC Map, API is responding with an error 'Unauthorized':

However, if we hard-code Authorization information in Xtend code, then we could call it from MEC as well. But, obviously, we can't hard-code OAuth token in Xtend code, as it changes every 2 hours.