/OneNoteAPISampleWinUniversal

Code sample with examples of how to use the OneNote API on a Windows 8.1 and above Universal app

Primary LanguageC#Apache License 2.0Apache-2.0

OneNote service API Windows Universal Sample README

Created by Microsoft Corporation, 2014. Provided As-is without warranty. Trademarks mentioned here are the property of their owners.

Intro

  • Universal Windows apps
  • This is a newer and better version of the previously released oneNote API WinStore and WinPhone code samples. Use this code sample to build universal Windows 8.1 and above apps.
  • As of December 2014, This code sample contains examples of all shipped features as well as most of the beta features released by the OneNote API team.

If you wish to ignore the app UI/design and directly get to the part that interacts with the OneNote API, you can find the code under the OneNoteServiceSamplesWinUniversal.Shared/OneNoteApi folder.

OneDrive Authentication based API demonstrated in this sample

You can find additional documentation at the links below.

Prerequisites

Tools and Libraries you will need to download, install, and configure for your development environment.

  • Operating system requirements for developing Windows universal apps:
    • Client: Windows 8.1 OR
    • Server: Windows Server 2012 R2
    • Phone: Windows Phone 8.1 (developer unlocked phone for device testing. Alternatively emulators can be used)
  • Visual Studio 2013 Update 4 or later.

Be sure you enable the Windows Phone SDK when you install Visual Studio. If you don't, you will need to uninstall and re-install Visual Studio to get those features.

  • You can get a full list of tools needed to build Universal Windows app here

  • NuGet packages used in the sample. These are handled using the package manager, as described in the setup instructions. These should update automatically at build time; if not, make sure your NuGet package manager is up-to-date. You can learn more about the packages we used at the links below.

Accounts

Using the sample

After you've setup your development tools, and installed the prerequisites listed above,...

  1. Download the repo as a ZIP file to your local computer, and extract the files. Or, clone the repository into a local copy of Git.
  2. Open the project (.sln file) in Visual Studio.
  3. It is highly recommended that you get your own client ID string and copy it into the file under .../OneNoteServiceSamplesWinUniversal.Shared/OneNoteApi/Auth.cs (~line 54).
  4. Build and run the app (F5).

(If your copy of NuGet is up-to-date, it should automatically update the packages. If you get package-not-found errors, update NuGet and rebuild, and that should fix it.)

If you get any build or deployment errors related to the Publisher of the app, be sure to Create an app package and use appropriate certificates

To use this Code Sample in your own app, be sure to do the following:

Version Info

This is the initial public release for this code sample.

Learning More