-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use courses.courseWork.addOnAttachments resource? #3529
Comments
I'm having the same problem too. Google API clients are automatically generated from a discovery JSON file. Google must periodically re-generate each client library and push to the respective package manager, npm, pypi etc. For example, the Python client API was regenerated a few weeks ago and includes Google Classroom Add-on functionality. The nodejs client library has not been regenerated with these new classroom changes. I've found a workaround to get these working locally if you're interested. Google if you are seeing this, please update the npm package 🙏 |
Hi @lukesanborn thanks for the response. Yep I'm interested for how it can working locally, could you please let me know? |
Workaround steps: node build/src/generator/generator.js 'https://classroom.googleapis.com/$discovery/rest' \ --include-private false \ --use-cache false After generating the API, install the package |
Also @lukesanborn maybe you know about this problem as well, I've try to issue request using Axios. Somehow I always got error below So what I've done is try to create attachment with issue POST request with Axios to
|
Btw thanks for the workaround steps @lukesanborn , let me try it |
Have you enabled the Google Classroom API in the Cloud console? @MuhamadIsmuaji |
Yes @lukesanborn , Google Classroom API already enabled. Additional information, I can issue GET request with Axios with same config to |
@sofisl When will the package be updated on npm? |
Hello everyone may I ask how I can use courses.courseWork.addOnAttachments resource with this lib? I've installed the lib with
yarn install googleapis
with version140.0.1
or yarn install@googleapis/classroom
with version4.0.9
. But somehow I can't use likegoogle.classroom({ version: 'v1' }).courses.courseWork.addOnAttachments.create()
? I've see in this repo there isaddOnAttachments
in this code . But somehow when I've install the lib, I can't find that codeThe text was updated successfully, but these errors were encountered: