google-apps

Google Apps / App Engine: https version of naked domain does not redirect

心已入冬 提交于 2019-12-21 20:12:54
问题 I have the following scenario: Website is hosted in AppEngine and we want to force it to always load in https. (we use secure:always in app.yaml) Domain is managed in Google Apps. We have uploaded SNI certificate and all looks good In Google Apps we set the redirect of the naked domain to the www version of it The following URLs all work: http:// website.com (redirects to https:// www.website.com) http:// www.website.com (redirects to https:// www.website.com) https:// www.website.com (the

Is it possible to access Provisioning API with service account?

…衆ロ難τιáo~ 提交于 2019-12-21 17:48:49
问题 My service account scopes are : https://apps-apis.google.com/a/feeds/user/ and DriveScope.DRIVE I authorized this same scope in "Manage third party OAuth Client access" in domain settings for my service account Id. I use the java client of the provisioning api. I build my credentials with the google oauth client with a GoogleCredential.Builder : credBuilder.setTransport(HTTP_TRANSPORT) .setJsonFactory(JSON_FACTORY) .setServiceAccountId(config.serviceAccountId)

Google App Script ContentService downloadAsFile not working

╄→尐↘猪︶ㄣ 提交于 2019-12-21 02:35:06
问题 I have a web app developed using Google App Script HtmlService and from the html form, populating excel sheet in the Google drive using SpreadsheetApp . And one another section is calling ContentService to download data as excel file. function doGet(e) { // Read excel sheet //getAppFile(); // Render the application from HTML template return HtmlService.createTemplateFromFile('index').evaluate() .setTitle('Go Smart') .setSandboxMode(HtmlService.SandboxMode.IFRAME); } function

What is the correct SPF record for using both Amazon SES and Google Apps

陌路散爱 提交于 2019-12-20 10:47:02
问题 What would be the correct SPF record to use for both Amazon SES and Google Apps together: Google Apps says they want you to have the tilde "~" in it: http://support.google.com/a/bin/answer.py?hl=en&answer=178723, but most other examples have a dash "-" instead. Amazon wants: "v=spf1 include:amazonses.com -all" Google wants: "v=spf1 include:_spf.google.com ~all" We currently have this, combining both together: TXT "v=spf1 include:amazonses.com include:_spf.google.com ~all" SPF "v=spf1 include

How do I get a Google Drive App's Open URL?

旧时模样 提交于 2019-12-20 04:59:10
问题 I am hoping to programatically open a drive file with a particular app using the Google drive APIs. The aim is to mimic the GUI drive method of launching an app using the "Open With" context menu for a selected file. While I can get a list of the available apps using apps list method, the app resource doesn't detail the Open URL as far as I can work out. Does anyone know if it is possible to obtain the Open URL using the APIs? 回答1: I believe if you have the scope set for drive.apps.readonly

iPhone sending data to and retrieving data from Google Apps?

爷,独闯天下 提交于 2019-12-19 10:16:36
问题 I've seen a couple of iPhone applications that have the functionality to export data to a Google Apps document or spreadsheet. I would like to add similar functionality to my iPhone app. Is there an API for that? How about the other direction - is there a way to get data (say a CSV file) from a Google Apps spreadsheet? If there isn't one of those, is there a way to directly import a SQLite dump file in iTunes? Background: the app I'm writing deals with a large number of records, possibly

NodeMailer - send mail with Google service account fails because “Username and Password not accepted”

你。 提交于 2019-12-19 02:55:10
问题 I'm creating a Twitter bot and I'm implementing a method that sends me a email if there is an error. As I'm already using the google API to access Google Drive (have no problem here), I decided to use the service account to send the email (Google console says it could be used that way) The method I've come up to send the email so far is: var config = require('./config/mail'); var google = require('./config/google'); var nodemailer = require('nodemailer'); var send = function (args) { let

Can a Google Apps Admin manage users files with Drive SDK?

落爺英雄遲暮 提交于 2019-12-18 04:50:55
问题 The new Drive SDK is very good for the authenticated user. Is it possible use Drive SDK using Google Apps administrative access to impersonate other domain users? The doclist API can do it but it's not possible manage and copy files (pdf, jpg) with this tool. I'm using Java with this code: credential_origine = new GoogleCredential.Builder().setTransport(HTTP_TRANSPORT) .setJsonFactory(JSON_FACTORY) .setServiceAccountId("[email from console api]") .setServiceAccountScopes(DriveScopes.DRIVE)

How to skip hidden rows while iterating through Google Spreadsheet w/ Google Apps Script

梦想与她 提交于 2019-12-18 04:45:35
问题 I have a Google Spreadsheet with many hidden rows in it, and I want to skip them when iterating through a list of rows in the spreadsheet. It's mainly an efficiency issue, as I'm dealing with over half of my rows being hidden and in no need of being checked. Any help would be appreciated. 回答1: There's no direct way of doing this in Apps Script, but there is a feature request open to provide a way get the show/hide status of a row, if you want to star it. 回答2: The issue tracker holds that

How to add a Google Drive folder to “My Drive” section to other users

北战南征 提交于 2019-12-18 03:47:01
问题 I have a Google Drive herarchichal folder and subfolders structure owned by me and I want to add it to the "My Drive" section in all users in our Google Apps for Business domain automatically. How can I do this? I heard about Google Apps Script and AddToFolder function. Please, can you help me? Thanks in advance. 回答1: This is very easy to do if each user could just access a link and authorize a script (that you build) to do the job for them (place a shared folder in their root folder). But if