_fixedEncodeURIComponent(str) {
    return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
      return '%' + c.charCodeAt(0).toString(16);
    });
  }
/**
   * This method is used to encode the URI path which is required by TC for authentication.  The URI Path
   * must match how the request library encodes the URL or authentication will fail.  The built-in encodeURIComponent
   * does not encode the following characters `!'()*` which prevents authentication from working.
   *
   * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent
   * @param str
   * @returns {string}
   * @private
   */
This method is used to encode the URI path which is required by TC for authentication.  The URI Path
must match how the request library encodes the URL or authentication will fail.  The built-in encodeURIComponent
does not encode the following characters `!'()*` which prevents authentication from working.


This method is used to encode the URI path which is required by TC for authentication . The URI Path must match how the request library encodes the URL or authentication will fail . The built - in encodeURIComponent does not encode the following characters ` ! ' () * ` which prevents authentication from working .
_fixedEncodeURIComponent(str) {
    return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
      return '%' + c.charCodeAt(0).toString(16);
    });
  }
_fixedEncodeURIComponent ( str ) { return encodeURIComponent ( str ) . replace ( / [!'()*] / g , function ( c ) { return '%' + c . charCodeAt ( 0 ) . toString ( 16 ) ; } ) ; }
This method is used to encode the URI path which is required by TC for authentication.
This method is used to encode the URI path which is required by TC for authentication .