How To Access Course Material In Google Classroom API? - google-classroom

Using the Google Classroom API is there a way to get or create Material for Courses?
I'm able to get a listing of Assignments and Questions but not Material using courses.courseWork.

Unfortunately so far it's not possible
However, a related
feature request has been filed on Google's Public Issue Tracker and quite a few users have indicated that they are interested in the feature.
Show that you are also interested by giving a "star" to this feature request, this will show the importance of the feature and you will be updated about its implementation.

Related

Can I get working places for all users from organization using calendar API?

I wonder if I can get working places for all users from organization using calendar API. Coworkers from my organization uses google calendar to mark if they work from home or office. I attach screen to show what I am talking about.
I've searched many endpoints from calendar API but did not find suitable one. Is it possible to get those information from API?
It is not yet possible to retrieve those information from the API.
But Google already documented it (tutorial, API reference) and it should come at some point in the (hopefully) near future.
Here is the related issue in their tracker : https://issuetracker.google.com/issues/199918380

Is it possible to dynamically query Google APIs to see how much of the limit/quota you've used?

For a given Google API, is there any way to dynamically check usage against any of the current limits for that API?
For example, this page https://developers.google.com/classroom/limits?hl=en shows that I can query the Classrooms API 4,000,000 times per client per day. At midday, without going to the API Console, how could I know that I've already hit 3 million queries?
I'm hoping that there's a billing or usage API that covers this, but can't see it.
Note: I'm not having any issue right now with a specific call, just anticipating that my usage will scale up significantly in the next few months, so am looking for a solution for monitoring rather than advice on not hitting the limits at all. My specific use-case is for Google Classrooms, but reading wider around this I can't see a general solution either.
Answer:
No, dynamically you can't retrieve this information.
Feature Request:
You can however let Google know that this is a feature that is important for the Google Workspace APIs to have, and that you would like to request they implement it.
The page to file a Feature Request for the Google Classroom API is here, as there is no specific component for Google Workspace APIs in general I would suggest filing it here instead.
You can use Google's Cloud Monitoring API to achieve this. This is the documentation page for APIs-
https://cloud.google.com/monitoring/api/v3
This is the documentation page for concerned metrics-
https://cloud.google.com/monitoring/api/metrics_gcp#serviceruntime/quota/allocation/usage
https://cloud.google.com/monitoring/api/metrics_gcp#serviceruntime/quota/exceeded
https://cloud.google.com/monitoring/api/metrics_gcp#serviceruntime/quota/limit

Is there an API for extracting rubric grading data in Google Classroom?

I have read a helpful post for grades...
Is there an API for extracting grades in Google Classroom
and the API for grading...
https://developers.google.com/classroom/guides/manage-coursework#grade_student_responses
but haven't been able to see anything for rubric grading data yet. Or am I missing it?
Answer:
Unfortunately, at this time, there isn't a way of getting Rubrics from the Classroom API.
Feature Request:
There is already a report on Google's Issue Tracker which request this feature to be added to the API:
Add Rubrics to Classroom API
It appears that Google does seem to know about this and has responded on the above feature request. What you can do it hit the ☆ next to the issue number in the top left on the aforementioned page - this lets Google know more people are wanting this feature to be implemented and so it is more likely to be seen to faster.

Classroom API getMaterials not returning materiels under topics

i'm trying to get Materials listed under a specific topic using google Classroom API, but what i get is only materials that are listed directly under CourseWork, once i move them to a topic getMaterials returns null;
i also tried this to get json returned by the server :
mClassroomService.courses().courseWork().list(courseID).execute().getCourseWork().toString()
the result confirmed that only courseWorks that are not listed under a certain topic that get loaded with their material.
any help please ?
Currently it is not possible to retrieve "independent" materials with courses.courseWork.list
The respective endpoint has not been implemented so far.
However, other users who are also affected by this issue filed a
feature request for this behavior on Google's Public Issue Tracker.
If you "star" this feature request, you will help to increase visibility for the importance of this feature and thus the chance that it will be implemented in the near future.

How to get place description using Google API or any other API?

I am using Google API to get the place information and store it into database. Using Google API I am able to get address, opening hours, rating and reviews as shown in below image.
But, I am not able to get place description which is highlighted in below image in red circle. ("Quaint Italian mainstay for deep-dish, Chicago-style pizza, calzones, pastas & hot dogs.")
I want that information in my application. I think google is taking those information from
Freebase https://developers.google.com/freebase/guide/basic_concepts
Wikipedia https://www.mediawiki.org/wiki/How_to_contribute
But I am not sure.
Can any one help me suggest me that how I can get that information or any other API that I can use to get that information based on google place_id.
Any help would be highly appreciated.
Thank you
Accordingly to the documentation and #xomena, currently you cannot obtain this data via Places API. There is a feature request in Google issue tracker to make the detailed business type available in Places API, however Google doesn't expose any ETA (estimation time of arrival:
https://issuetracker.google.com/issues/35822953
Feel free to star this feature request to express your interest and subscribe to notification from Google.
To my knowledge it is not possible to get this information from the Google Places API. The API documentation does not display the venue description. Try to have a look here: https://developers.google.com/places/web-service/details (it might be that Google does not share all information from their platform with other developers..).
I would suggest you to do one of the following (or perhaps both):
Scrape Google the old school way; i.e. by getting the information from the HTML. There is a quite decent guide for doing that here (you would of course have to adjust the example to scraping Google instead): https://medium.freecodecamp.org/how-to-scrape-websites-with-python-and-beautifulsoup-5946935d93fe.
What I would recommend and which probably is the fastest: enrich your current data with other data. You could e.g. use Foursquare and search for the places you get from Google. It should be possible to get the description for each place on Foursquare. See here: https://developer.foursquare.com/docs/api/venues/details. If you have problems with matching the places after your query has returned, because the venue names are not exactly the same - but close, then you could use an algorithm to match strings that are close; perhaps using the levenstein distance (https://en.wikipedia.org/wiki/Levenshtein_distance).

Resources