google-apps

Google Apps Admin SDK Directory API 403 in PHP

a 夏天 提交于 2019-12-13 02:17:11
问题 I'm getting Error calling GET https://www.googleapis.com/admin/directory/v1/users/email@example.com.com: (403) Not Authorized to access this resource/api when running $client = new Google_Client(); $client->setClientId(GOOGLEAPPS_CLIENT_ID); $client->setApplicationName(SITE_NAME); $key = file_get_contents(APPLICATION_PATH . 'googleapps-privatekey.p12'); $assertion = new Google_AssertionCredentials( GOOGLEAPPS_EMAIL_ADDRESS, // the service account name array('https://www.googleapis.com/auth

Google Drive SDK docid changed - How to relate documents stored by old docid to the new one?

谁说胖子不能爱 提交于 2019-12-13 00:13:59
问题 It appear that the docid's changed for all google drive documents on our google apps domain... Will it change again? Why was it changed? (my google/yahoo/bing searches on this subject turn up nothing useful - is no one else experiencing this? For me it seems to have happened at around Jan 16/17th) And most importantly for now: Is there a way to cross-reference all of the old docid's to the corresponding new docid's? 回答1: Found out some more info. The root cause is a migration from the old

Unique ID counter

三世轮回 提交于 2019-12-12 18:26:36
问题 I've posted a couple questions over the last few days regarding a Google Apps Script Web App I'm working on. So far Serge on here has been super helpful. The post on that script is here. I'm looking to add a column in that script to generate a uniqueID counter, so that when a new form is submitted, the counter will see previous uniqueID and increment by 1. Idea would be blank spreadsheet with a header row. The script runs on form submit, see A2 is blank and inserts 1. Next submitted form will

How to download files in Google Cloud Storage using rest api

允我心安 提交于 2019-12-12 16:59:07
问题 Scenario: there are multiple folders and many files stored in storage bucket related to dcm API.(click,impression,daily aggregate files etc). https://console.cloud.google.com/storage/browser/dcmaccountno Is it possible to download files using rest api and currently i have service account and private key. we dont have much exposure towards goog cloud storage hence any small help would be really appreciable. Thank you for any help! 回答1: Using rest API you can download/upload files from google

Google Cloud Resource Manager API - grant owner role to a user

天大地大妈咪最大 提交于 2019-12-12 16:32:44
问题 I am using Google Cloud Resource Manager API with Service Account authorization in Google Apps Script. In the program I am interested in updating the roles of a Developer Console Project. Specifically, I am trying to change Developer Console project's owner to editor and another user as owner. This, I believe in terms of HTTP Request payload would look like: // before (taken from response of getIamPolicy REST call) { "bindings": [{ "role": "roles/owner", "members": ["user:abc@my-google-domain

Error while publishing to chrome web store

烈酒焚心 提交于 2019-12-12 12:38:50
问题 I get an error while publishing my demo project (a google apps marketplace application) in chrome web store to my own domain. I get the below error. "API Console project with the id specified in the manifest's api_console_project_id field, does not have Google Apps Marketplace SDK enabled." I have enabled Google Apps Marketplace SDK and Google Apps Marketplace API as well for the particular project. Also, I have not gotten my application reviewed by google. Do I have to get this reviewed even

Google Script send form values by email, error: cannot read property “namedValues”

夙愿已清 提交于 2019-12-12 11:18:38
问题 Project key: MyvPlY2KvwGODjsi4szfo389owhmw9jII I am trying to run a script that sends the contents of my form by email each time the form is submitted. I was following the instructions from this link below exactly until I started getting errors and I received advice to change my script to open spreadsheets by id: http://www.snipe.net/2013/04/email-contents-google-form/ When I complete the form, it is supposed to email the contents to my email. The problem I am nowhaving is that the function

Use OCR function of google docs on google apps script

心已入冬 提交于 2019-12-12 09:14:56
问题 How can i use this on the google apps script? i want to upload attachments from gmail. Also, i want to use the ocr function of google docs since all of the attatchments will be images. function uploadFile() { var image = UrlFetchApp.fetch('http://goo.gl/nd7zjB').getBlob(); var file = { title: 'google_logo.png', mimeType: 'image/png' }; file = Drive.Files.insert(file, image); Logger.log('ID: %s, File size (bytes): %s', file.id, file.fileSize); } 回答1: Change your file varaible to Drive.Files

How do I point multiple domain names at a single Google App Engine application?

耗尽温柔 提交于 2019-12-12 08:57:14
问题 Let GAE = Google App Engine, GA = Google Apps. Let's also say that I have one GAE account with one app, 'exampleapp.appspot.com' and one GA account successfully associated with name 'example1.com', and that I have also successfully setup 'example1.com' to point to 'exampleapp.appspot.com'. My question is how to setup 'example2.com' to serve 'exampleapp.appspot.com'? Theoretically this process is similar to the original setup, which requires that you 1. add domain to GA and confirm ownership,

How to use Gmail as your SMTP server for Youtrack?

微笑、不失礼 提交于 2019-12-12 07:44:10
问题 Youtrack allow to send email through 3rd party SMTP server. Fields are as follows: SMTP host: [?] SMTP port: [?] Mail protocol: [?] SMTP login: [?] SMTP password: [?] Select SSL key: [?] Server 'from' email: [?] Could you provide an example of Gmail or Google apps config ? 回答1: Here is what I finally did: SMTP host: smtp.gmail.com ; SMTP port: 465 ; Mail protocol: SMTP+SSL ; SMTP login: user@domain.com or user@gmail.com ; SMTP password: ****** ; Select SSL key: No key ; Server 'from' email: