OneNote service API iOS Sample README
Created by Microsoft Corporation, 2014. Provided As-is without warranty. Trademarks mentioned here are the property of their owners.
API functionality demonstrated in this sample
The following aspects of the API are covered in this sample. You can find additional documentation at the links below.
- Log-in the user using the Live SDK
- POST simple HTML to a new OneNote QuickNotes page
- POST page in a specific section
- POST multi-part message with image data included in the request
- POST page with a URL rendered as an image
- POST page with a file attachment
- POST page with a PDF file rendered and attached
- Extract the returned oneNoteClientURL and oneNoteWebURL links
Tools and Libraries you will need to download, install, and configure for your development environment.
Be sure to verify the prerequisites for these too.
Included with the sample
We've included these packages in the ThirdPary folder, for your convenience using the sample. We didn't write them, and they have their own license information. You won't need to download them to use the sample, but below are links if you want to learn more.
- AFNetworking provides networking utility classes
- ISO8601 Date Formatter is used to translate date/time for use with the API
- As the developer, you'll need to have a Microsoft account and get a client ID string so your app can authenticate with the Microsoft Live connect SDK.
- If you need other stuff for your iOS app development, visit the Apple developer site to get an apple developer account.
Using the sample
After you've setup your development tools, and installed the prerequisites listed above,....
- Download the repo as a ZIP file to your local Mac, and extract the files. Or, clone the repository into a local copy of Git.
- Open the project in XCode.
- Get a client ID string and copy it into ONSCPSCreateExamples.m (~line 28).
- Check that the Live Connect SDK binaries are properly linked to your project in the Build Phases tab of the XCode Project Navigator. If they are not, use Add Other... to add them. Also, drag and drop the LiveSDK.framework from the Project Navigator into the Copy Bundle Resources on the Build Phases tab.
- Build and run the app.
- Log in using the running app, using your Microsoft account.
- Allow the app to create new pages in OneNote.
This is the initial public release for this code sample.
- Visit the dev.onenote.com Dev Center
- Contact us on StackOverflow (tagged OneNote)
- Follow us on Twitter @onenotedev
- Read our OneNote Developer blog
- Explore the API using the apigee.com interactive console. Also, see the short overview/tutorial.
- API Reference documentation
- Debugging / Troubleshooting
- Getting Started with the OneNote service API