GithubHelp home page GithubHelp logo

onenotecnapisample's Introduction

OneNote Class Notebook APIs Sample

The OneNote Class Notebook APIs let you programmatically create and edit class notebooks. This sample demonstrates the basics on how you would call these APIs using JavaScript, jQuery and ADAL for authentication. To learn more about ADAL you can visit its GitHub page. For full documentation on the class notebook APIs take a look at our article on MSDN.

Please keep in mind that this sample is meant to illustrate how you would reach our APIs in JavaScript and does not necessarily contain all the code you would want for a production-ready application. In a more complete web app you would probably use a framework like AngularJS, add more specific error handling, etc.

If you would like to see a live version of this app we have an instance running on Azure that you can access here.

How To Run This Sample

Step 1. You will need the following

  • An Azure subscription
  • An Office 365 subscription

The Azure subscription should be associated with the Office 365 subscription. Authenticate using Azure AD (enterprise apps) has details on how to do just that.

Step 2. Register your app in Azure and add permissions

Again, follow the instructions under Authenticate using Azure AD (enterprise apps) to register your application in Azure. You will also need to give your app Notes.ReadWrite permissions.

Since this web app uses OAuth 2's implicit grant flow, you should enable it in your app's manifest in Azure. This article has details on the implicit grant flow and how to enable in Azure. In particular, you'll want to download your app's manifest in the Azure Management Portal, set the "oauth2AllowImplicitFlow" field to true, and upload the manifest to the portal.

Step 3. Fill in your clientId in app.js

You will need to specify the clientId for your app in app.js. You can get the clientId in the Azure Management Portal.

Step 4. Run your application

If you are using Visual Studio, build and run your application. To test your application locally you will also need to add the local URL as a reply URL in your app's page in the Azure Management Portal. The sample is set to run at localhost:55407.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

onenotecnapisample's People

Contributors

dipakboyed avatar jorge-lg avatar

Stargazers

 avatar  avatar

Watchers

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

onenotecnapisample's Issues

[Action Needed] This repo is inactive

This GitHub repository has been identified as a candidate for archival

This repository has had no activity in more than [x amount of time]. Long periods of inactivity present security and code hygiene risks. Archiving will not prevent users from viewing or forking the code. A banner will appear on the repository alerting users that the repository is archived.

Please see https://aka.ms/sunsetting-faq to learn more about this process.

Action

✍️

❗**If this repository is still actively maintained, please simply close this issue. Closing an issue on a repository is considered activity and the repository will not be archived.🔒

If you take no action, this repository is still inactive 30 days from today it will be automatically archived..

Need more help? 🖐️

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.