how to emulate Copy menu function to reproduce a Classroom for the next term? - google-classroom

The Google Classroom class cards page provides the function / option to COPY a classroom (reproduce) for purposes such as a new term. This COPY feature is not exposed in the Classroom API.
How might I emulate it?

At the moment there is no direct way of cloning a classroom in the Classroom API. There is the IssueTracker 150669916 which requests that feature, you could go and give it a +1 to increase in popularity. In #2 there is a workaround that could be used as an alternative, you can follow it to emulate this behaviour.

Related

how to remove/edit old attachments using google classroom API

using the google classroom api i am able to modify attachments
and everytime i call the method
courses.courseWork.studentSubmissions.modifyAttachments
but the attachments just concatenate to the previously attached files.
my question is how can i remove an attachment that i accidently added or that i want to replace?
just like the classroom UI enables you to remove an attachment after you added it
Google classroom UI
Unfortunately there is no feature available to remove attachments with Google Classroom API . This is a product limitation for the API and can be promoted for future development [1]. Your idea will then be available for other members of the community to browse and vote on. Depending on the business impact Google product engineers typically roll out into production.
[1] https://developers.google.com/classroom/support#missing_features

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

How To Access Course Material In Google Classroom API?

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.

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.

Individual assignments in Google Classroom API

Will the functional for creating individual assignments be available in API as well as in UI?
Google classroom does provide API for creating assignments. See its document.

Resources