google-classroom

Account restricted to google Classroom API

牧云@^-^@ 提交于 2020-04-30 05:17:05
问题 My collague and I have a C# WPF project, which manage courses in Google Classroom. We create the project in Google API platform. We are the owner of the project. Both have OAuth 2.0 Client IDs. (but it doesn't matter) I allow all of Classroom API's scope. I am the domain admin of our Gsuite for Education. Google Classroom API is allowed in the domain. He can login and use the program, there is not any error, every function is ok. I can't, because i got an error 400, invalid_request Account

Google Classroom Apps Script - CourseWork.list permission error

匆匆过客 提交于 2020-04-13 08:06:39
问题 I am trying to access course work from my Google Classroom in a Google Apps Script using the Classroom API v1. I followed the steps in the Quickstart to successfully retrieve my course list, but when I tried to access the coursework in one of my classes using the following: var coursework = Classroom.Courses.CourseWork.list('valid courseId'); I get a 'The caller does not have permission' error. I can successfully retrieve the coursework list using the APIs Explorer, though. From playing with

How can I distinguish between students and teachers?

Deadly 提交于 2020-03-26 07:13:36
问题 Using the Google Classroom API method userProfile, I can get various information about a user, including their name and email address, but not whether they are a student or teacher. How can I determine whether a user is a student or teacher? 回答1: Classroom does have the concept of teachers and students, however the distinction between teachers and students is only meaningful relative to a particular course (it’s possible for a user to be a “teacher” of one course and a “student” of another)

Use of regEx with multiple categories

只谈情不闲聊 提交于 2020-01-24 19:59:06
问题 I need to rotate the match through variables Cat1 to Catx as long as there is data for the Cat'x'. Whenever I do this this, it does not consider as a variable but the literal Cat4 or Cat5 instead of the variable Cat4 & Cat5 when I try to compile the new category label. Such as the following with i increasing until there is no value to the variable searched for .. i.e. Cat57 has nothing assigned. category = "Cat"+i This is the portion of my code I believe that needs to be adjusted ..

How to implement OAuth in google classroom

你离开我真会死。 提交于 2020-01-07 09:09:19
问题 Presently i am working on google classroom API to integrate classroom into my .NET product.I am using below method for authenticating user.My problem is when i execute this code it asking authentication for first time but when i execute this code next time it directly log in as previous log in credentials.When i try this after many days and many browsers also directly log in as first authenticated user.But for every fresh time execution of code i want it ask for authentication of user rather

Google Classroom iOS Share Button?

…衆ロ難τιáo~ 提交于 2020-01-07 06:15:55
问题 Is there an API to add a google classroom share button in iOS? I only see a Javascript example on the guides, and the iOS API doesn't say anything about a share button. Thanks! 回答1: There's no iOS SDK, but you can use URLs of the form https://classroom.google.com/share?url=https://foo.com/ to share content. (Using the system browser might work better than a WebView because the user is more likely to be logged in there.) 来源: https://stackoverflow.com/questions/32210870/google-classroom-ios

Copying Images between Google Form quizzes

余生长醉 提交于 2020-01-07 05:39:06
问题 I am trying to copy Google quiz items from one Form to another, which appeared to have been completely successful. However, I forgot that some of these items have images attached to them. Here's a link to an example quiz. There's nothing documented to suggest how to access these, but I have tried getImage both from the Item and the Item.asMultipleChoiceItem but neither is recognised. It's just the last 2 lines of code that aren't working. I get TypeError: Cannot find function getImage in

Maintaining enabled APIs in Container-bound Script for a Google Sheet Template

家住魔仙堡 提交于 2020-01-05 09:04:26
问题 I have a Google sheet with a Container-bound Script that makes Google Classroom API calls. I have added the spreadsheet now as a template for all teachers in my organization to copy the sheet and use it for themselves. However, when teachers copy from the template, a new project is created in Google Console with no enabled APIs for that new project. They would have to go into the developer console and enable Classroom API for it to work.... No! This is way too much of a hassle for my fellow

I can't enable Classroom API to project

浪尽此生 提交于 2020-01-03 06:35:13
问题 I know this question has been asked here but not properly answered... I can't access the Classroom API in developers console though I've been aproved to do so. Could you, please, share the neccesary steps? Any help will be much appreciated :-) 回答1: The Google Classroom API is currently in Developer Preview. Please apply for access and wait for the confirmation email. 来源: https://stackoverflow.com/questions/31288237/i-cant-enable-classroom-api-to-project

Permission denied using Classroom.Courses.CourseWork.StudentSubmissions.list(4140802199, 4801051201);

假如想象 提交于 2019-12-25 16:40:40
问题 I have been able to move some data from google classroom to a spreadsheet using google script. Specifically anything in classroom courses or course work. I get a permission error when I try to access and thing in coursework. (method listAssigments works fine needs refinement works slow) (method listGrades gives and permission error at var submissions) I have set up the API as describe in getting started, but have not added any other authorization. I originally thought it was because I created