title: C# - Edit OneNote Notebook on SharePoint using REST API
body: <p>I would like to edit a OneNote NoteBook which is stored in a SharePoint Document Libary via a C# Console Application (because i want to use it to batch input pages into a notebook form a Windows 7 machine).
  Url looks like this:
     http_s://COMPANY.sharepoint.com/sites/SITE_ID/Documents/_New%20Tool/NOTEBOOK_NAME?d=SOME_ID</p>
  
  <p>So i found this documentation for the OneNote REST API: <a href="https://dev.onenote.com/docs" rel="nofollow noreferrer">One Note Api</a>, and i have two questions:</p>
  
  <ol>
  <li>How do i get/request the Bearer Token? SDKs for this seem to be only available for Universal Windows Applications</li>
  <li>How do i get the correct API URI? As it states <a href="https://msdn.microsoft.com/en-us/office/office365/howto/onenote-get-content" rel="nofollow noreferrer">here</a> i need some IDs for the URI, but i do not know which ones to use.</li>
  </ol>
  
  <p>If anyone has any "quick start code" to begin with or a blog post, that would be great. The official examples on GitHub do not seem to be fitting my needs...</p>