I’m trying to create assignments for students through the google classroom api. However, I’ve learned admins can not do that, only teachers. So in our code, after creating a new course we’re then setting the teacher’s email, which is the same as for the admin. However, the code fails when creating the teacher. It says the request had insufficient authentication
Tag: google-api-java-client
Unable to collect data from metric query language MQL – GCP
I want to execute MQL (metric query language) using below library. Here is my code snippet. which will create monitoring client and will try to collect data from GCP monitoring. Above code is working fine but its not returning data of given startTime and endTime , It always returns latest datapoint available. is there any problem with my code ?
Downloading attachments from unseen messages
I work on university project in java. I have to download attachments from new emails using GMAIL API. I successfully connected to gmail account using OAuth 2.0 authorization. private static final …
Unable to fetching subscription detail from Google Play Android Developer API
I am trying to use Google APIs Client Library for Java to get information about user’s subscriptions purchased in my android app. Then I got this error: I am trying those steps: Go to https://console.cloud.google.com Create a project (or select existing project) Create a service account with role Pub/Sub Admin Go to https://console.cloud.google.com/apis/library and search for “Google Play Android Developer