OneNote 2013 API Sample for Windows Forms app - onenote

Can I write a simple Hello World app for Windows Forms using the OneNote 2013 API? I can find no example of this.

There isn't a published sample right now, as we don't have a Live SDK for desktop windows for doing the necessary auth.
If you can use another library to get an OAUTH token for your Microsoft account, then you can just copy/paste the HTML and service calling code from the Windows Store application.

Related

Microsoft Identity Platform

I have two web apps that need to be SSO enabled. How do I do that in Microsoft Identity platform?. Is there a way to generate two access and refresh token from MSAL and then give access to the API's in Azure AD?
Start by reading through the documentation for Microsoft identity platform and then try some of the samples. Here is a link to the web app samples which will sign-in users but also have incremental tutorials to call Microsoft Graph or your own web api.

One Note API for office365 Home integration

I have a web application with which I want to integrate One Note.
My License is office 365 home.
Can I Integrate OneNote API with my PHP application with office 365 home subscription? or do we have to get some higher level subscription?
You should be able to. Try signing in with your account in the graph explorer and making a few API calls to get your OneNote content - you can quickly confirm that way.
https://developer.microsoft.com/en-us/graph/graph-explorer

Office 365 / Exchange API for windows phone 8/8.1 development project

I am working on a Windows Phone development project (wp8/wp8.1) and need to grab the user's Exchange/Office 365 calendar information. My quick research found the EWS API and Office 365 API preview cannot be used in Windows Phone projects.
Does anyone know any approach/API that I can use to make the oAuth authentication and data retrieving code easier?
Thank you.
Depending on what you're trying to do, you can either use the calendar object directly which can read info from the phone calendars : http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286421(v=vs.105).aspx this works, but you don't have any access to attachments for example and there's few others limitations.
Or if you target 8.1 : http://www.cloudidentity.com/blog/2014/04/16/calling-office365-api-from-a-windows-phone-8-1-app/
Or you can use the Exchange Web Services in SOAP or POX like you would do if developing for another platform. I can't post the link, but the reference is on the msdn.
Good luck with exchange development, it's quite a nightmare :)

New OneNote note via WP8 app

Is there any way of programmatically adding a new note to OneNote via a Windows Phone 8 app? I know I can't interact directly with the OneNote app, but wondering if there's a way to add directly to the Personal (Web) file on SkyDrive via an API or sending an email or whatever. I've done some searching and I'm guessing not, but can't hurt to ask, right?
You can connect so SkyDrive via the Live Connect API. There's a tutorial for interacting with SkyDrive from Windows Phone here. I've not tried interacting with a OneNote file but if it's on SkyDrive, it should be accessible.
Having said that, OneNote uses a proprietary format and I'm not sure if there's an API you can call on the phone to create OneNote pages programmatically. It does have an interface which you could look into but it seems you might need to do that server side and interact via a web service from your app.

API for Microsoft OneNote 2010 + SkyDrive Web Services?

I am quite familiar with the Microsoft OneNote 2007 and 2010 APIs, however these interface directly with OneNote itself. In 2010 we have the great facility of syncing OneNote with SkyDrive. This works really well. We can also use the OneNote Web App, Windows Phone 7 and now the iPhone app to access our documents.
My question is this, is there any way of accessing the SkyDrive (or similiar) API directly to enable access to our OneNote notebooks on SkyDrive itself? I trust existing OneNote Uers will see the power of this.
Opening up fiddler I see all sorts of calls to http://docs.live.net/SkyDocsService.svc. The services are also referenced in a forum post by Daniel "Mr OneNote" Escapa on a forum post below:
OneNote has a 3 screen solution with the 2010 release. We will have the desktop app, the web app and a mobile app all which sync to the same place in the cloud to Windows Live. This will allow you to do all of the same things you mention above. So when you are at your parents you can use the browser to view your notes (IE, Firefox & Safari). You can also view your notes in the Android browser on your phone and finally I hope there is a OneNote app for the Android in the future. For example there is a 3rd party group which has released an iPhone solution for OneNote 2007 even without all of these web services we are adding in Office 2010.
Daniel Escapa
This is supported REST SKYDRIVE API http://msdn.microsoft.com/en-us/library/live/hh826521.aspx
Video:The complete developer's guide to the SkyDrive API: http://channel9.msdn.com/Events/BUILD/BUILD2011/PLAT-134C
SkyDrive core concepts: http://msdn.microsoft.com/en-us/library/live/hh826545.aspx
Create, read, update, and delete folders and files, and get links to files so that other users can access those files directly.: http://msdn.microsoft.com/en-us/library/live/hh826531.aspx
Create, read, update, and delete albums, photos, videos, and audio. Read, create, and delete tags on photos and videos.: http://msdn.microsoft.com/en-us/library/live/hh826522.aspx
Code Samples (Interactive SDK): http://isdk.dev.live.com/ISDK.aspx
We finally have a result! Read Scott Hanselman's blog post, OneNote and Microsoft's quiet API revolution of 17 March 2014 which breaks the news on the new OneNote REST API.