code: function (token) {
          if (token) {
              if (!additionalHeaders) {
                  additionalHeaders = {};
              }
              additionalHeaders['Authorization'] = 'Bearer ' +
                  (token.hasOwnProperty('accessToken') ?
                      token.accessToken :
                      token);
          }
  
          executeRequest({
              method: method,
              uri: config.webApiUrl + path,
              data: stringifiedData,
              additionalHeaders: additionalHeaders,
              responseParams: responseParseParams,
              successCallback: successCallback,
              errorCallback: errorCallback,
              isAsync: isAsync,
              timeout: config.timeout
          });
      }
docs: /* develblock:end