public static DPSReportGetUploadsObject GetUploads(DPSReportSettings settings, List <string> traces, int page = 1)
 {
     if (settings.UserToken == null || settings.UserToken.Length == 0)
     {
         throw new InvalidDataException("Missing User Token for GetUploads end point");
     }
     return(GetDPSReportResponse <DPSReportGetUploadsObject>("GetUploads", GetURL(BaseGetUploadsURL + page, settings), traces));
 }
        private static string GetURL(string baseURL, DPSReportSettings settings)
        {
            string url = baseURL;

            if (settings.UserToken != null && settings.UserToken.Length > 0)
            {
                url += "&userToken=" + settings.UserToken;
            }
            return(url);
        }
 public static DPSReportUploadObject UploadUsingRH(FileInfo fi, DPSReportSettings settings, List <string> traces)
 {
     return(UploadToDPSR(fi, GetURL(BaseUploadContentURL, settings) + "&generator=rh", traces));
 }