public JiraCloudExporterClientService(string appName, string atlassianAppKey,
                                              string apiKey, string appSid, string basePath = "", bool debug = false)
        {
            _apiKey         = apiKey;
            _appSid         = appSid;
            _basePath       = basePath;
            _debug          = debug;
            _pdfApi         = null;
            _barcodeApiStub = null;
            AuthException   = null;

            RequestId       = Guid.NewGuid().ToString();
            AppName         = appName;
            AtlassianAppKey = atlassianAppKey;
            Stat            = new List <StatisticalDocument>();
            var version        = GetType().Assembly.GetName().Version;
            var DefaultHeaders = new Dictionary <string, string>
            {
                { AsposeClientHeaderName, AppName },
                { AsposeClientVersionHeaderName, $"{version.Major}.{version.Minor}" }
            };

            _pdfConfig = new Aspose.Pdf.Cloud.Sdk.Client.Configuration(_apiKey, _appSid)
            {
                DefaultHeader = DefaultHeaders
            };
            if (!string.IsNullOrEmpty(_basePath))
            {
                _pdfConfig.BasePath = _basePath;
            }

            _barcodeConfig = new Aspose.BarCode.Cloud.Sdk.Configuration
            {
                DebugMode      = _debug,
                AppKey         = _apiKey,
                AppSid         = _appSid,
                DefaultHeaders = DefaultHeaders
            };
            if (!string.IsNullOrEmpty(_basePath))
            {
                _barcodeConfig.ApiBaseUrl = _basePath;
            }

            _stopwatch = new Stopwatch();
            _stopwatch.Start();
        }
        public GithubExporterClientService(string appName, string token, string apiKey, string appSid, string basePath = "", bool debug = false)
        {
            AppName   = appName;
            RequestId = Guid.NewGuid().ToString();

            _token          = token;
            _githubClient   = null;
            _pdfApi         = null;
            _barcodeApiStub = null;

            Stat = new List <StatisticalDocument>();

            var version        = GetType().Assembly.GetName().Version;
            var DefaultHeaders = new Dictionary <string, string>
            {
                { AsposeClientHeaderName, AppName },
                { AsposeClientVersionHeaderName, $"{version.Major}.{version.Minor}" }
            };

            _pdfConfig = new Aspose.Pdf.Cloud.Sdk.Client.Configuration(apiKey, appSid)
            {
                DefaultHeader = DefaultHeaders
            };
            if (!string.IsNullOrEmpty(basePath))
            {
                _pdfConfig.BasePath = basePath;
            }

            _barcodeConfig = new Aspose.BarCode.Cloud.Sdk.Configuration
            {
                DebugMode      = debug,
                AppKey         = apiKey,
                AppSid         = appSid,
                DefaultHeaders = DefaultHeaders
            };
            if (!string.IsNullOrEmpty(basePath))
            {
                _barcodeConfig.ApiBaseUrl = basePath;
            }

            stopwatch = new Stopwatch();
            stopwatch.Start();
        }