/// <summary> /// Method to Fetch API Version /// </summary> /// <param name="dataAccessToken"></param> /// <returns></returns> public string GetAPIVersion(string dataAccessToken) { string apiVersion = string.Empty; string encryptedDataAccessToken = string.Empty; AuthenticateService integrationService = new AuthenticateService(); try { apiVersion = integrationService.GetAPIVersion(Constants.CONSUMER_SECRET_TOKEN, UtilityService.DecryptedText(dataAccessToken), Constants.VERSION_5); } catch (DovicoException e) { logger.Log(LogLevel.Error, e); } catch (Exception e) { logger.Log(LogLevel.Error, e); } return(apiVersion); }