Git Product home page Git Product logo

onenote-export's Introduction

OneNote Export

Export OneNote notebooks as JSON + HTML using the Microsoft Graph REST API. The Graph Explorer is helpful for learning the API.

Access Tokens

Most of the battle is getting access tokens for your personal Microsoft account. Try this "streamlined" process:

  1. Register an application with MS Graph
  2. Under the Platforms header, create a web app and set the Redirect URL to http://localhost:3000/token
  3. Set the environment variable CLIENT_ID to the Application ID generated for your app
  4. Start the Node web app and visit /login in your browser
  5. Login to your MS account, getting redirected to /token
  6. Copy the access token out of the URL and assign it to the environment variable ACCESS_TOKEN
  7. Restart the Node web app

Be warned that the access token expires after an hour or so.

Exporting

The web app presents a simplified version of Microsoft's API for getting OneNote data:

  • /notebooks: Get all notebooks as JSON list.
  • /sections: Get all notebook sections as JSON list.
  • /pages: Get all notebook pages (excluding HTML content) as JSON list.
  • /content: Get all notebook pages (including HTML content) as JSON list.

onenote-export's People

Contributors

epatters avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

smnkrt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.