In my plugin, I'm using the SugarCRM function SUGAR.App.api.getOAuthToken() for querying any data (get/post) on each ajax call of SugarCRM v10 REST API. Below is the piece of ajax request code
$.ajax({ beforeSend: function(request) { request.setRequestHeader…