예제 #1
0
        static async Task AddCoverToRecord(Retriever retriever, string recordId, MagazineIssueDate issueDate)
        {
            string coverUrl = GenerateMagazineCoverUrl(issueDate);

            Console.WriteLine($"coverUrl is {coverUrl}");
            string tableName = "Issues";

            (bool success, string errorMessage) = await retriever.PostAttachmentToRecord(coverUrl, tableName, recordId);

            if (!success)
            {
                Console.WriteLine(errorMessage);
            }
            else
            {
                Console.WriteLine("Successfully posted!");
            }
        }