Ejemplo n.º 1
0
        private async Task <bool> CreateOneNotePageAsync(string sectionUrl, string pageTitle)
        {
            var httpRequestMessage = ServiceHelper.GenerateCreatePageHttpRequest(pageTitle, sectionUrl);
            var result             = await ExecuteSendAsync(httpRequestMessage);

            return(result);
        }
Ejemplo n.º 2
0
        private async Task <bool> CreateOneNotePage(string sectionUrl, string pageTitle)
        {
            var httpRequestMessage = ServiceHelper.GenerateCreatePageHttpRequest(pageTitle, sectionUrl);
            var result             = await this.httpClient.SendAsync(httpRequestMessage);

            return(result.IsSuccessStatusCode);
        }