Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
418 views
in Technique[技术] by (71.8m points)

android - How to access Classroom Course Stream using Google Classroom API

I was finally able to access the Google classroom API from an Android app even though the Authorization flow used here doesn't work in an Android environment.

Now I can view all courses, the description etc but not the discussions in the Classroom (labeled Stream in the Google android Classroom app and Web App).

The Google classroom android app is so poor and buggy and always crashes that's why I decided to embark on this project.

So my question is how can I get this? I can't find such a call in the API documentation.

question from:https://stackoverflow.com/questions/66055264/how-to-access-classroom-course-stream-using-google-classroom-api

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The Stream from Google Classroom is split into different elements so, depending on the type of elements you have and want to retrieve from the Classroom Stream, you might benefit from checking the following requests:

Retrieving the announcements

GET https://classroom.googleapis.com/v1/courses/{courseId}/announcements

Retrieving the courseworks

GET https://classroom.googleapis.com/v1/courses/{courseId}/courseWork

Retrieving the coursework materials

GET https://classroom.googleapis.com/v1/courses/{courseId}/courseWorkMaterials

Note

Also, please bear in mind that all these requests will return the information needed only if the user making the request has access and the necessary permissions for retrieving it.

The quickstart you mentioned is a Java one - so in order to make it work for Android you will have to adapt it properly to your needs.

Reference


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...