How to access all "assigned" with google classroom API - google-api

I'm new to the Google Classroom API, and would like to clarify if it is possible to access work from the "assigned" tab, or if possible, all the tabs in the image below. I'm using Javascript btw. Thanks!
https://imgur.com/a/zySH228
(I need 10 reputation to post pictures .-. so here's the link)

In Google Classroom courseWork is always in the context of some course. So to get courseWork from all courses you will have to iterate through all the courses that the student has access to and for each course use this API- developers.google.com/classroom/reference/rest/v1/…. This API will give all Published assignment for that class for the student.

Related

Google People API: Any relation between Metadata and resourceName on a Person object

When use new Google People API to get a Person object, is there a relation between Person.Metadata.Sources[0].id and Person.ResouceName? like the resouceName is calculated from the Person.Metadata.Sources[0].id
The reason why I asked this is in the old Google Contacts API, we store the contact URL like https://www.google.com/m8/feeds/contacts/[email]/full/3c8fcc428ca19658 which I noticed the suffix string 3c8fcc428ca19658 is the same as the Person.Metadata.Sources[0].id in new Google People API, so we can easily know the old URL match which resouceName?
Yes, you can calculate a resourceName from a contact-ID but it's not documented and cannot be trusted to work, however a Google engineer privately guaranteed this should work in the next month.
See original answer here: https://stackoverflow.com/a/46355535/819355
and discussion in comments here: Is there any way to get Google People API resource ID from Google Contacts contact Id?

Need help - embed Google My Business Posts into website

I'm looking for an api or another way to grab posts (not reviews) from google my business and embed them to a website. We don't want to have to place the updates/posts at two different places...google my business and the actual website.
I'm already grabbing reviews using the google places API but didn't find any solutions for actual posts
appreciate any directions to the end result...thank you
You can do this through the Google My Business API
The method to fetch Google My Business posts is accounts.locations.localPosts.list

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.

Google API to get all public & private photos +1'd by the currently authenticated user

I've been cheerfully plus-one-ing all the good photos that my family and I share with each other (shared only to my family circle, not public). I assumed that at some point I'd be able to retrieve all +1'd photos and create a physical family album... however it looks like there's no way through the Google+ UI to actually retrieve that information:
https://plus.google.com/+RobertoTyley/posts/i4bqxxSpceq
Is there any API that allows you to retrieve the currently authenticated user's +1s?
As far as I can tell there is no way to see what you have +1ed you can see your comments so if you had commented on all the posts.
Activites list only appears to return public posts, being that its public only its no help to you. That and its posts and not +1s
Comments list is of no help either even if you had commented and not +1ed because its comments on a post and not a picture and you would have to know the post.
But the thing is that pictures are also accessible via the Picasa Web Albums Data API I don't have any experience with this API, but just scanned the documentation a bit. It does let you request albums and check the comments on the album it may also show a +1 on it I don't know.
IMO Google+ api is probably a dead end I don't think it has what you need. I would try digging around the Picasa api see if you cant use that instead.

Resources