How to access student class notebook via API? - onenote

We have a requirement that a teacher can write to students' class notebooks from within our app.
I can access the tutor's class notebooks and the students/groups associated with it.
However I've been trying to simply query the student's class notebook but aren't getting any results (the request doesn't fail). I'm trying:
https://www.onenote.com/api/v1.0/users/{id}/notes/classnotebooks/
Can someone point me in the right direction?
Thanks for the help.

This is currently not supported by the API. Please feel free to make this suggestion under OneNote's UserVoice page at https://onenote.uservoice.com/forums/245490-onenote-developer-apis

Related

in Kore.ai Dialog Task - How to allow user to upload and then submit a document via an API and update Workday?

We have an HR chatbot on the Kore.ai platform. I'm wondering if it's possible to allow a user to upload and submit a letter directly to our Workday HR system, using a dialog task.
We will be able to get the Workday integration through our internal TIS team to allow us to update Workday. However I don't know what is involved in the Dialog task. Does anyone have an example of the code required within the Kore.ai platform to achieve this? Any guidance is appreciated. Thank you!
I’m sorry I just saw this post. You can add the letter as an attached file you can upload to the chatbot. Also, if you find it easier we can also create a form where the user explains the reasons, like a normal letter and update it to the system. Let me know if you would like to set up a quick meeting and go through all the options ☺️

Looking up values in html in background of iOS app

I'm new to iOS development and I'm trying to make an app that tracks my student loans. I would like to have the app simply display a balance found on the loan's website and build on that behavior. I've got my app to open up safari to the website but I'd like more of a web-crawling behavior so it's done in the background. This web-crawler needs to be able to login to the website and then find a field with the loan balance value..
I've looked up several ways on how to do this but I can't get any of them to work with my novice level of experience with swift. If anyone has a recommendation and a direction to go with this, that would be great.
Thanks in advance!
I've written an app to get my uni's schedules, payment records, and grades by bypassing the login and gain access to API used by the website.
The step you could take are probably very similar to mine
Find out how the website authenticate its users (could be by cookie, session id's etc) You need to have some knowledge on web too. You can use the network tab on Chrome/Brave/Safari or any other browser to see what the website is doing when you click on 'login' for example. You could use Charles too, 30 days of trial should be enough.
After authentication succeed, track what API route the website use to get the datas to html. See what information you need to access the API route. Postman would be very handy to see the JSON response by the API.
To parse the response, you can use URLSession or networking library like Alamofire to get the job done.
If you want to see how I did it, here's the GitHub repo.

OneNote ClassNotebook data from REST API has wrong students list

I'm running OneNote add-in that use OneNote REST APIs.
While investigating an issue from one of our user, I found the class notebook data from REST API only have one student in students field but the user said that there are more in OneNote app.
So, here is data from REST API. And I asked their class notebook manage screen and there is only one - But they see lists in OneNote app.
Is this something different type of notebook?
The response indicates that single student entry is a group (see 'principalType'), while the teachers are of type 'Person'. It looks like the students were added as a group, which is why you only see that group in the API response and in the Add/Remove students screen. That group was expanded into its individual students when the notebook was created. The teacher will see the students in the OneNote client, but only the group in the Class Notebook Creator app.
You can use the Azure AD APIs to get the list of students who are part of that group.
By the way, the API response and screenshots you included contain some personal information that you may want to remove :)

How does OneNote differ between "View Notebooks" and "View Notebooks in Your Org"?

I'm creating an application to work with OneNote in Office 365 and so I'm creating an app registration in Azure. I want to be able to view notebooks, and there are two permission options: View notebooks and View notebooks in your organization. Irrespective of which permission I select, the only notebooks the call returns are ones in the currently authenticated user's personal site (using "https://www.onenote.com/api/v1.0/me/notes/notebooks" as the Url for the GET request).
So...is it because of the Url I'm using (I haven't found any documentation that uses anything other than ".../me/..."), or is it just working as expected? For example, there's no documentation I've found that describes what all notebooks "in your organization" means - does that include every SharePoint site collection Notebook? Something else? Any additional details or links to specific information would be appreciated.
Yes it is possible to Get Personal Notebooks in the Users OneDrive For Business (/me/) as well as Notebooks hosted in SharePoint sites(/myorganization/) that the user has access to.
Organization Notebooks -
https://www.onenote.com/api/{version}/myorganization/siteCollections/{id}/sites/{id}/notes/notebooks
You would need SiteCollectionId and SiteId to access the organization notebooks.
To understand how you get the notebooks (in the users organization) by referring to this documentation -
https://blogs.msdn.microsoft.com/onenotedev/2015/06/11/and-sharepoint-makes-three/
I did finally find the documentation where they list the different locations from which you can request notebooks: https://msdn.microsoft.com/en-us/office/office365/howto/onenote-get-content. Also, to get the gist of my question, although the service uses a common Url to access notebooks, there isn't a single location where you can ask for all notebooks in an organization. The Azure permission merely gives you the right to go get them if you can find them. As noted in the first answer above, if you know where they are at and if you have the right permissions with your app then that all works great. But you have to know where they are, because there doesn't seem to be a discovery type API for them.

How do I make a url that is specific to some set of data with out a html file?

For example, facebook. I have a list of different teams that shows overall data for that team, but the goal is the user will click on their team and send them to page that is detailed information about their team. My client wants the user's team name to be within the url so they can save the page as a favorite.
How I do this with out making a html file for every single team that gets made?
Im using Django for back end.
If you're using django then there is certainly no sense in making html for each team. You should make a template and populate this template with the data you're getting from your database (models.py) according to url (urls.py) and the appropriate view (views.py).
This is fairly basic django usage covered extensivly in the offical tutorials and the django documentation. Read it and use it, cause there is no shortcut. And last but not the least - enjoy cause such good tutorials and docs you won't see every day.