private void TestSendSheet()
        {
            List <Recipient> recipients = new List <Recipient>();
            Recipient        recipient  = new Recipient();

            recipient.Email = "*****@*****.**";
            recipients.Add(recipient);

            FormatDetails formatDetails = new FormatDetails();

            formatDetails.PaperSize = PaperSize.A4;

            SheetEmail email = new SheetEmail.CreateSheetEmail(recipients, SheetEmailFormat.PDF).SetFormatDetails(formatDetails).Build();

            smartsheet.SheetResources.SendSheet(newSheetHome.Id.Value, email);
        }
        public void TestReportResources()
        {
            SmartsheetClient smartsheet = new SmartsheetBuilder().SetMaxRetryTimeout(30000).Build();

            //Must manually create a Report at smartsheet.com and paste reportId and reportName below.
            long   reportId   = 1176442848470916;
            string reportName = "New Blank Report";

            Report report = smartsheet.ReportResources.GetReport(reportId, new ReportInclusion[] { ReportInclusion.ATTACHMENTS, ReportInclusion.DISCUSSIONS }, null, null);

            Assert.IsTrue(report.Name == reportName);
            SheetEmail email = new SheetEmail.CreateSheetEmail(new Recipient[] { new Recipient {
                                                                                     Email = "*****@*****.**"
                                                                                 } }, SheetEmailFormat.PDF).SetCcMe(true).Build();

            smartsheet.ReportResources.SendReport(reportId, email);

            PaginatedResult <Report> reportResults = smartsheet.ReportResources.ListReports(null);

            Assert.IsTrue(reportResults.Data.Count == 1);
            Assert.IsTrue(reportResults.Data[0].Name == reportName);
        }