![]() ![]() Open Visual Studio -> Click on “New Project” -> Select ASP.NET Web Application and give a proper name to your application.Click on “Save” and DON’T FORGET TO COPY KEY VALUE AND CLIENT ID. That’s it, your application is configured in Azure AD now.Now go to “Reply URL” and add a new one which will correspond to the address in which you will write the code to handle the return flow.Make sure to copy this key value as this is client secret for your application. You will get a message that “The Key value will be displayed after you save it”. ![]() ![]() Click on “Add application” and select “OneNote” and give appropriate permission.Azure AD already has “Enable sign-on and read user’s profiles” permission. Go to “Configure” tab and at the bottom you will get the option to manage permissions. SingleTenantOneNoteAPIDemo, replace with the name of your Office365 tenant. Provide a Sign-On URL and a unique App ID URI.Give proper name to the app and select Web Application/OR Web API option.Add a new application and select “Add an application my organization is developing” Navigate to Active Directory and click on Applications tab.Go to Azure AD related to your O365 account.Register your application in Azure AD: We need to register the app in Azure AD as well as give OneNote API proper permissions.Please note that the below code is for single tenant app and OneNote API are in preview. Below are the steps you need to follow to access your notebooks using OneNote API for O365. After spending a lot of time on it and getting help from Microsoft OneNote API team, I was able to resolve it. I decided to give it a try but most of the examples/documentation I found was for native client applications which is obviously not working for web apps. Microsoft recently announced OneNote API for O365 notebooks. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |