service-accounts

Enable mail forwarding using a Google Apps Service Account

半城伤御伤魂 提交于 2019-11-27 07:22:14
问题 On April 20, 2015, several Google Apps APIs are being discontinued, including the Provisioning API(gdata). In my Python scripts, I am using a Service Account and OAuth 2.0, instead of ClientLogin, and the replacement API: Directory API. However, I am unable to find a way to enable mail forwarding using the new API, and all of Google's Python documentation for mail forwarding explains how to do it using ClientLogin, which is also being discontinued on April 20th. Relevant Info: I have a

Who owns calendars created by service account via Google Calendar API and how can they be shared?

微笑、不失礼 提交于 2019-11-27 05:37:15
问题 Let's say I have a Google account some.account@gmail.com with project project-1 (configured as Google App Engine application in Google Developer Console) and a service account with e-mail address 12..@developer.gserviceaccount.com that belong to it. I know how to use this service account to create a calendar and manipulate its entries programmatically: I use the Google APIs Client Library (Java version, with service account´s credentials) to invoke Google Calendar API inside my Google App

Can we access GMAIL API using Service Account?

江枫思渺然 提交于 2019-11-27 04:33:45
I have a desktop application to read mail using GMAIL API over REST Interface. I want to use service account so that we can download the mails using domain setting and user interaction is null. I am successfully able to create Gmail Service instance but when I try to access any Gmail API method like fetching mail list or any other I get an exception saying Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"access_denied", Description:"Requested client not authorized." I am done with all the setting at developer console and added scopes to my gapps domain. Does Gmail API support

How to change the scope of a Google Compute Engine service account to write data to a Google Cloud Storage bucket?

南笙酒味 提交于 2019-11-27 03:16:18
问题 There is an instance running on GCE and there is a GCS bucket in same project. But I am not able to write data to it. How can I write data from a VM instance to the storage bucket? 回答1: Update: as of 15 Dec 2016 , the feature setServiceAccount is now in beta : You can change the service account and/or access scopes of an existing instance if you want to run as a different identity, or you determine that the instance needs a different set of scopes to call the required APIs. For example, you

Can't access FireBase Database via HTTP/REST error 403 Forbidden

安稳与你 提交于 2019-11-27 01:45:59
Swift + Vapor framework for server + Xcode 8.1 I am trying to read Firebase Realtime Database making HTTP requests to my DB, but I get permission denied. These are the steps: 1. create JWT sign it with secret key downloaded from "console.developers.google.com" 2. send POST request to OAuth2 server and get access token 3. send GET request to firebase database with access token received from OAuth2 server. I get "Permission denied", HTTP/1.1 403 Forbidden // the header of the JSON Web Token (first part of the JWT) let headerJWT = ["alg":"RS256","typ":"JWT"] // the claim set of the JSON Web Token

Send mail via Google Apps Gmail using service account domain wide delegation in nodejs

只愿长相守 提交于 2019-11-26 23:39:56
问题 I've been reading tutorials and seeing examples for 2 days already, with no success. I want to send an email using Google Apps Gmail account in NodeJS environment, however, i get 400 response from Google API: {[Error: Bad Request] code: 400, errors: [{ domain: 'global', reason: 'failedPrecondition', message: 'Bad Request' }] } Here's what I've done so far: Created a project in Google Cloud Platform Created a service account Enabled Domain Wide Delegation for the service account Downloaded the

Google Calendar Event Not Showing in Calendar

房东的猫 提交于 2019-11-26 11:36:54
问题 We have created a Service Account in Google and Using Calendar API for adding events, it worked fine before ,after google stopped the account and reactivated it , it didn\'t work We have tried new service account and debugged line by line of our code and no error and also returning created events but not showing in calendar CalendarService service = null; var serviceAccountCredentialFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, \"ServiceAccount_Key.json\"); if (Path

Can we access GMAIL API using Service Account?

我们两清 提交于 2019-11-26 11:14:43
问题 I have a desktop application to read mail using GMAIL API over REST Interface. I want to use service account so that we can download the mails using domain setting and user interaction is null. I am successfully able to create Gmail Service instance but when I try to access any Gmail API method like fetching mail list or any other I get an exception saying Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:\"access_denied\", Description:\"Requested client not authorized.\" I am

Can't access FireBase Database via HTTP/REST error 403 Forbidden

一笑奈何 提交于 2019-11-26 08:25:35
问题 Swift + Vapor framework for server + Xcode 8.1 I am trying to read Firebase Realtime Database making HTTP requests to my DB, but I get permission denied. These are the steps: 1. create JWT sign it with secret key downloaded from \"console.developers.google.com\" 2. send POST request to OAuth2 server and get access token 3. send GET request to firebase database with access token received from OAuth2 server. I get \"Permission denied\", HTTP/1.1 403 Forbidden // the header of the JSON Web Token