Skip to content
Advertisement

Tag: google-api-java-client

Request had insufficient authentication scopes error when creating teacher through Google Classroom API

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

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 ?

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

Advertisement