using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Aspose.Words.Cloud.Sdk; using Aspose.Words.Cloud.Sdk.Model; using Aspose.Words.Cloud.Sdk.Model.Requests; var config = new Configuration { ClientId = "####-####-####-####-####", ClientSecret = "##################" }; var wordsApi = new WordsApi(config); using var requestDocument = File.OpenRead("Sample.doc"); var insertRequest = new InsertHeaderFooterOnlineRequest(requestDocument, "", "FooterEven"); await wordsApi.InsertHeaderFooterOnline(insertRequest);