google-api-client

NextPageToken gives invalid input error, 400 - Google Directory API ChomeDevices

别来无恙 提交于 2021-01-28 05:05:53
问题 I have to fetch 250K chromebooks from google workspace (Gsuite), I am using Admin Directory API to retrieve JSON data from Google. The response returns in chunks of 200 records, in the response is included a nextPageToken , I use that next page token to retrieve the next 200 and so on. After an hour, of using the nextPageToken attached from the previous request, However Google returns with error 400, {error_code: 400, "message"=>"Invalid Input: CMiJhq7-5ewCEp0BCm737N8GN......"}, Note: This

Google Play Developer API - “The current user has insufficient permissions to perform the requested operation.”

故事扮演 提交于 2020-11-26 10:25:47
问题 I have a Google dev console process with Google Play Developer API is enabled and the project is linked to Google Play project. In Google Dev console project, created OAuth Client ID (web application) (I'm an owner of the project). Using "client_id" and "client_secret" to authenticate. Tried to using google-api-client in Python, Google Developer API Playground to send request to list reviews of our apps but got error: "The current user has insufficient permissions to perform the requested

Google Play Developer API - “The current user has insufficient permissions to perform the requested operation.”

为君一笑 提交于 2020-11-26 10:22:55
问题 I have a Google dev console process with Google Play Developer API is enabled and the project is linked to Google Play project. In Google Dev console project, created OAuth Client ID (web application) (I'm an owner of the project). Using "client_id" and "client_secret" to authenticate. Tried to using google-api-client in Python, Google Developer API Playground to send request to list reviews of our apps but got error: "The current user has insufficient permissions to perform the requested

upload to google cloud storage signed url with javascript

允我心安 提交于 2020-06-24 11:24:48
问题 With the following code I'm able to upload to my publicly writable bucket in google cloud storage. (allUsers has write permission). However If the bucket isn't publicly writable then I get a 401 unauthorised error. (I don't want the bucket to be publicly writable). var file = $scope.myFile; var fileData = file; var boundary = '-------314159265358979323846'; var delimiter = "\r\n--" + boundary + "\r\n"; var close_delim = "\r\n--" + boundary + "--"; var reader = new FileReader(); reader

upload to google cloud storage signed url with javascript

爷,独闯天下 提交于 2020-06-24 11:24:07
问题 With the following code I'm able to upload to my publicly writable bucket in google cloud storage. (allUsers has write permission). However If the bucket isn't publicly writable then I get a 401 unauthorised error. (I don't want the bucket to be publicly writable). var file = $scope.myFile; var fileData = file; var boundary = '-------314159265358979323846'; var delimiter = "\r\n--" + boundary + "\r\n"; var close_delim = "\r\n--" + boundary + "--"; var reader = new FileReader(); reader

How to use the node google client api to get user profile with already fetched token?

余生长醉 提交于 2020-06-24 09:38:43
问题 Getting a user profile info through curl curl -i https://www.googleapis.com/userinfo/v2/me -H "Authorization: Bearer a-google-account-access-token" Getting a user profile info through node https get request const https = require('https'); function getUserData(accessToken) { var options = { hostname: 'www.googleapis.com', port: 443, path: '/userinfo/v2/me', method: 'GET', json: true, headers:{ Authorization: 'Bearer ' + accessToken } }; console.log(options); var getReq = https.request(options,

How to use the node google client api to get user profile with already fetched token?

一世执手 提交于 2020-06-24 09:38:30
问题 Getting a user profile info through curl curl -i https://www.googleapis.com/userinfo/v2/me -H "Authorization: Bearer a-google-account-access-token" Getting a user profile info through node https get request const https = require('https'); function getUserData(accessToken) { var options = { hostname: 'www.googleapis.com', port: 443, path: '/userinfo/v2/me', method: 'GET', json: true, headers:{ Authorization: 'Bearer ' + accessToken } }; console.log(options); var getReq = https.request(options,