Google classroom API - google-api

I am new for Google Classroom API integration and want to confirm following queries can anyone please answer for my questions for my confirmation.
1- Classroom API is available only available for Google Apps for Education users not for the Gmail users just want to confirm this again.
2- Classroom API to get list of courses is only for student account not for the Teachers because I am getting empty value by using Teachers account.
Please reply me for above queries.
Thanks

Yes, Classroom (and the Classroom API) is only available to Google Apps for Education users.
If the teacher can see classes on https://classroom.google.com/ (not just classes they're "invited to teach") then they should also be able to see them via https://developers.google.com/classroom/reference/rest/v1/courses/list.

As of March 2017, Google Classroom is now open to users without G Suite for Education accounts. It works with Gmail accounts. It's not currently available for G Suite (Google Apps) accounts that are not G Suite for Education.
See mjs's answer.

Related

How do I integrate and test Google Classroom for a web application

I'm really confused on how I adapt my existing web application to work with Google Classroom. I currently have a local authentication system for teachers and students, but how does a teacher or school connect their Google Classroom authentication to mine? How do I test that authentication, and test the API access to the student lists. I feel like I'm missing something fundamental in my understanding of how Google Classroom works, but I also can't find any documentation on "How to bring your app to Google Classroom".
I don't access Google Classroom through Web platform but I was able to communicate with the Classroom API in this open-source Android application : Classroom Client.
You claim you already an authenticating system, like I don't know how that works but all you just have to do is get a Client ID as stated here.
Once authorized you can execute various API calls supported by the API, there is a reference here

Chatbot with Microsoft Office365/outlook Calendar

I want to develop a chatbot and want to integrate Microsoft Office365/Outlook calendar.
So flow of application will be like this:
1) From Admin panel Manager user will invite Partner users and partner users will come and connect to their office 365 calendar and and enable access to share it. Now this calendar will be available for chatbot.
2) on FrontEnd(chatbot) guest or registered users will provide their emails and book meeting from the available timing based on calendar.
.. guest users will provide there emails and get the available timing from a partner user calendar.
I started looking at Microsoft Graph API.
Can someone provide me with a good start?
To do this you will have to use the authentication features in bot framework. There is a good walkthrough to get you started. There is also a sample that demonstrates the use of the MS Graph API.

Google Classroom: Does "not a Google Apps user" go away?

With the March, 2017 announcement that
Classroom is now available for users with personal Google accounts, such as homeschoolers, tutoring programs, lifelong learners, and others who aren’t associated with a school.
Are there any conditions that can result in the Java API returning a GoogleJsonResponseException where getDetails().getMessage() contains the text "The user is not a Google Apps user"?
I think you're looking for this part of the Google Classroom API documentation, specifically for NotGoogleAppsUser:
NotGoogleAppsUser
NotGoogleAppsUser indicates that the requesting user does not belong to a G Suite domain.
Possible Action: Prompt the user to re-authenticate using a "G Suite for Education" account. Provide a link to using multiple accounts so the user can select the correct account.

How to set Student Post Permissions from Google Classroom API

The Google Classroom API (with the google-php-api-client) allows a web application to create courses, and enroll Students in that course. However, the Google Classroom web site, under the Students tab, has a select with the following options:
From the post and comment list, choose a permission level:
Students can post and comment
Students can only comment
Only teacher can post or comment
How can I set this post permission with the Google Classroom API?
I think this kind of option is not executable with the Classroom API itself. As of now, you need to manually set up this in the Google Classroom website itself.
If you check the Google Classroom API documentation reference, there is no method or request that is specific for the students permission or can do these things involving the students.
I found here a related topic that asking about permission setting through API. The only workaround of the user that ask this question is by manually set the permissions with the Google Classroom UI and not through the API.
For more information, check this Manage Teachers and Students part of the documentation.

How to store Google classroom Assignment and assessments data in our SQL database using Google classroom API

Presently i am working on Google Classroom API to integrate Google Classroom to my .net web application.I am able to store courses details,teachers and students in each course in my SQL server database but i am unable to store Assignment and assessments related data given by teacher and students marks and no.of students did assignments in time in my Database.How can i achieve this
Your small answer will help us a a lot
The Google Classroom API currently doesn't provide access to assignment data. You can follow feature request #3887 to get updated when this feature is added.

Resources