-
Notifications
You must be signed in to change notification settings - Fork 67
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
[Feature Request] Google Classroom Support #85
Comments
hey @IronKane2 - I can definitely add it in! I don't have Classroom personally, so it hasn't been on my radar. What would be some of your most-wanted Classroom features to manage with PSGSuite so I can focus on those first? |
Here's the REST API documentation to give you an example of what's available: https://developers.google.com/classroom/reference/rest/ |
I'll refer to the GAM page https://github.com/jay0lee/GAM/wiki/Managing-Google-Classroom |
I got you covered! I'll keep you updated here on progress. Busy next few days but should be able to hopefully get you course and participant functionality by the end of the weekend! |
@IronKane2 - alright, the Classroom API is kinda large, lol. Started work on it tonight once I had a second, but it may take a bit to deploy something useful. I'll keep you updated though! |
Thanks for your hard work |
@IronKane2 - Progress, slowly but surely! Classroom Course management functions done, you can follow along with the progress here: https://github.com/scrthq/PSGSuite/tree/feature/add_Classroom_support/PSGSuite/Public/Classroom If at any point you want to test any of the functions added, you can clone the repo at that branch and import the module directly from there: git clone -b feature/add_Classroom_support git@github.com:scrthq/PSGSuite.git
Set-Location PSGSuite
Import-Module .\PSGSuite\PSGSuite.psd1 -Force Current functions added:
|
Update to functions created:
Just need to wrap up invitation and guardian functions then should be good to publish. Going to estimate 2.14.0 will be published by mid-week with the Classroom functions. Disclaimer: I currently do not have access to a G Suite Education account, so these functions are somewhat untested in real life. I'm working on getting access to a G Suite Education account for testing, but nothing tangible quite yet. Once published, any feedback you have on these would be greatly appreciated! Please do some small scale testing with any of the functions you plan on using once it's released and let me know if everything works as expected or if you hit any odd errors. The wiki should also be updated with the function help contents for each if you want to check it out now. |
This is great news. I'll be happy to give feedback. |
|
The only items missing from the Classroom API are:
Aside from that, there should pretty much be feature parity with GAM outside of |
Thanks again for your hard work. I've updated the module, but when I execute get-gscourse I get this:
get-gscourse : You cannot call a method on a null-valued expression.
Is there something more that I needed to do before using the new cmdlets? |
so the really odd part about that one is that I was getting that too intermittently while developing it. The Classroom service is the only one that I've seen that with. I'll check it out and see if I can figure out why it's doing that, but you should be able to get past it by closing out any PowerShell sessions you have then reopening. In certain situations, I needed a full reboot tbh. Really strange considering it would only throw that error sometimes. |
I tried the full reboot. Here's the current error:
|
can you try |
Also worth noting that the Initial Setup docs have been updated with Classroom specific info, in case you haven't enabled the Classroom API for your Developers Console project and/or updated the scopes for your API Client Scopes to add: https://github.com/scrthq/PSGSuite/wiki/Initial-Setup#adding-api-client-access-in-admin-console |
Thanks, the information about updating Initial Setup did the trick. |
awesome! so I'm assuming you're getting data back? any ongoing issues if so? let me know! |
I execute this --> Get-GSCourseParticipant -CourseId 16451869665
Why "Add-Member"? I was just looking for a list. |
@IronKane2 Using Add-Member is handy for some list functions that don't return some key properties back with the results (listing group members is a prime example of this), so I tend to use Add-Member to ensure that certain properties accompany the results so if you decide to list participants for multiple course ID's, you'd be able to identify which course each participant belonged to from the resulting array of participants. That all being said, it's obvious that it's not needed in this case, so I'll get that pulled out ASAP! Thanks for the feedback, keep it coming! 😄 |
FYI @IronKane2 - Opened up Issue #87 to track these bug fixes since support for Google Classroom functions was already rolled out |
I was hoping/wondering if there is any plan to include Classroom in the suite?
The text was updated successfully, but these errors were encountered: