Skip to content

Authentication

Chad Shurtz edited this page Aug 30, 2016 · 1 revision

OneNote uses the OAuth 2.0 protocol to authenticate users and grant the application developer permissions to access their data in a secure manner. The access token provided by the authentication process is required to use OneNote's REST API.

Steps on how to acquire an access token under a set of permissions for a user can be found at OneNote authentication and permissions.

After acquiring an access token, the token string should be passed to the constructor of the OneNoteApi object as follows:

var api = new OneNoteApi.OneNoteApi(accessToken);

On instantiating the OneNoteApi object, you may now use it to access the user's data under the permissions granted by the authentication process. Examples on how to use the OneNoteApi object can be found under Usage.

Clone this wiki locally