service-accounts

GCP Firestore Python Credentials

∥☆過路亽.° 提交于 2019-12-24 00:59:20
问题 I am having trouble sending data from my Linux VM to my GCP's Firestore. I am simply trying to update an item inside of the database. I am getting an issue regarding credentials. Depending on the method I use, I get different errors however, I believe they all stem from the same issue. As a note, I have a service account, with the json credentials. I know that these credentials are still valid because I am able to use GCP's Speech-to-Text. The only strange behavior I am getting is when

Google Sheets API Error: invalid_user: Robot is missing a project number

扶醉桌前 提交于 2019-12-23 17:23:19
问题 I am getting invalid_user: Robot is missing a project number. when trying to access google sheets using the service account created in my project. I followed the exact steps mention in the URL: https://www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html It seems to work for everyone else, and surprisingly I am not able to find any solution on the web. Accessing the data using oAuth credentials is working good for me, but I want to deploy the code

Using service account to access Google Admin Report SDK

妖精的绣舞 提交于 2019-12-23 02:08:06
问题 Is it possible to use a service account to access the Google Admin Report SDK? I have a very basic example I am trying to run and I always get a 400 error returned. I have validated the key and service ID are correct and I have even delegated authority to this service account. Is this just not possible? Anyone have any ideas? PrivateKey serviceAcountPrivateKey = null; try (InputStream resourceAsStream = getClass().getClassLoader().getResourceAsStream("insta2.p12")) { serviceAcountPrivateKey =

Is it possible to use service accounts to schedule queries in BigQuery “Schedule Query” feature ?

北战南征 提交于 2019-12-22 18:15:11
问题 We are using the Beta Scheduled query feature of BigQuery. Details: https://cloud.google.com/bigquery/docs/scheduling-queries We have few ETL scheduled queries running overnight to optimize the aggregation and reduce query cost. It works well and there hasn't been much issues. The problem arises when the person who scheduled the query using their own credentials leaves the organization. I know we can do "update credential" in such cases. I read through the document and also gave it some try

Node: Google Analytics data via service account

戏子无情 提交于 2019-12-21 05:57:09
问题 Update: I've since turned the code into an NPM module. I've worked my way through created a JWT token for a service account, and I can access user data, but I want to get to my analytics data to use it to drive content on my website. Note: I don't know if there is a better way than this, but the the existing npm tools seem to require that you enter your password. As a result I end up using REST calls rather the gapi tools. This is the error I get { error: { errors: [ [Object] ], code: 403,

Google Apps Marketplace - Adding scopes via Incremental authorisation

荒凉一梦 提交于 2019-12-20 06:38:25
问题 We have an existing web app which uses Google's OAuth 2.0 APIs for Admin Directory, Drive, etc for administrative tasks like backup and audit. Currently we let our customers install backup and audit independently as 'modules' and each have separate client_id s and separate OAuth scopes (i.e. Admin directory for one, Drive for another). We want to bring our app to the Google Apps Marketplace, and take advantage of Google Sign In (OpenID Connect), use service accounts with domain-wide

How do I authorize a service account for Google Calendar API in Ruby?

ぐ巨炮叔叔 提交于 2019-12-20 06:31:27
问题 How do I authorize a service account for Google Calendar API in Ruby? I tried the quick start guide, but it crashed. https://developers.google.com/calendar/quickstart/ruby#step_3_set_up_the_sample quickstart.rb require 'google/apis/calendar_v3' require 'googleauth' require 'googleauth/stores/file_token_store' require 'fileutils' OOB_URI = 'urn:ietf:wg:oauth:2.0:oob'.freeze APPLICATION_NAME = 'Google Calendar API Ruby Quickstart'.freeze CLIENT_SECRETS_PATH = 'client_secrets.json'.freeze

How to upload file to google drive with service account credential

自闭症网瘾萝莉.ら 提交于 2019-12-18 16:56:32
问题 I wanted to upload the files to my Google Drive using a Google service account credentials. I downloaded credential as a JSON file from Google Developer Console, and got credential from it. Here is my code snippet. google_drive_service = discovery.build('drive', 'v3', credentials=ServiceAccountCredentials.from_json_keyfile_name os.path.join(settings.CLIENT_PATH, settings.CLIENT_SECRET_FILE), scopes=settings.SCOPES)) media = MediaFileUpload(tmp_file_path, mimetype=tmp_file.content_type,

How to get all files of all users using google drive API

喜你入骨 提交于 2019-12-18 08:56:55
问题 I am a 'domain admin' for a google account and would like to: Get all of the users in my domain and "for each" user, give another user read-access everyone's files . I can get each user, but right now I do not understand how to get each users documents. #!/usr/bin/python import gdata.docs import gdata.docs.service from gdata.apps import client userNameAtGmailCom = 'domainAdmin@someplace.com' password = 'mypassword' personToShareWith = "someGuy@gmail.com" domain = 'someplace.com' def login

Google Drive Service Accounts Additional Storage

情到浓时终转凉″ 提交于 2019-12-17 21:14:41
问题 I have an app where the users of my app can upload/download files, I don't want them to authorize every time they want to upload a file. So I came to know that Service Account is the solution to it, and that is exactly what I was looking for. I followed the the instructions given in this page: https://developers.google.com/drive/service-accounts It all works good, but the problem is the limit, i.e only 5GB, Isn't there any way where I can buy some Additonal Storage for my service Account(It