google-apps

calendarApp createEvent added event on wrong day

这一生的挚爱 提交于 2019-12-13 05:56:12
问题 Here is my code: function calEvent(){ var arrivalDate = "06/10/2013"; var departureDate = "06/18/2013"; var start = new Date(arrivalDate); var end = new Date(departureDate); var cal = CalendarApp.getCalendarById('id487g3esn088a00omqa99ugv0@group.calendar.google.com'); cal.createEvent('Apollo 11 Landing',start,end); } When I run this it will create the event in the correct calendar however it will only be from June 10 thru June 17. I need the event to cover June 10 - June 18. I have checked

Get count of user documents in Google Drive

别等时光非礼了梦想. 提交于 2019-12-13 05:50:21
问题 How can I get the list of all users and the number of Google Documents they have in Google Apps using Google Script? Regards 回答1: If you're simply looking to list the users and the number of docs, you can use the reports API for Drive activity: https://developers.google.com/admin-sdk/reports/v1/reference/usage-ref-appendix-a/users-docs. Getting all users uses a similar service, and is practically written for you: https://developers.google.com/apps-script/advanced/admin-sdk-directory. 来源:

How do I pre-sort numbers and not screw up the formatting?

笑着哭i 提交于 2019-12-13 05:46:15
问题 I have a custom function I am writing that will return an array of arrays: function tester(col){ var rows = [ // this gives me an error on sorting, so turn numbers to strings [4,2,3,"Tom"], [0,8,9,"Bill"], [5,7,1,"Bob"], [1,2,3,"Charlie"] ]; rows = [ // turning numbers to strings screws up formatting ["4","2","3","Tom"], ["0","8","9","Bill"], ["5","7","1","Bob"], ["1","2","3","Charlie"] ]; rows.sort(function(a, b) { return a[col].localeCompare(b[col]); // sort by column passed by user });

SSL configuration with Google AppEngine - redirecting naked domain makes Google Apps bug

被刻印的时光 ゝ 提交于 2019-12-13 05:14:04
问题 I have created an app on AppEngine, and setup my custom domain name on Google Apps. Both the naked domainenter link description here name and www subdomain work well. The issues start when I want to setup SSL. I have a certificate for the domain: www.mydomain.com , and the setup worked well in Google Apps. I also configured my app.yaml to secure: always , so all requests to http://www.mydomain.com go to https://www.mydomain.com, and all is well. While all this is working, a request to the

How to create Google calendar entry w/o user?

ε祈祈猫儿з 提交于 2019-12-13 05:09:51
问题 Recently I've decided to give users at my site the following functionality: online time slot booking in calendars of my employees. All employees have Google accounts linked to our domain in Google Apps (free edition). Users make booking in some front-end (e.g. not directly in employees Google calendars), then request is processed at our PHP server and if it is correct, server should be able to create new calendar entry in selected employee Google calendar. Note - neither user, nor employee

Gmail Account SMTP -> ERROR: Failed to connect to server: Connection refused (111)

两盒软妹~` 提交于 2019-12-13 04:47:44
问题 Im using phpmailer to send emails using google business apps. Everything was running fine but since last three days, I've started to get the following error SMTP -> ERROR: Failed to connect to server: Connection refused (111) The following From address failed: example@example.com The strange thing is that, this doesn't happen all the time. For example, Out of 10 emails, I get the above error for 9 and 1 email sometimes is sent out to recipient. Here is my code <?php function sendmail($mail_to

Google script : how to close an ui from the serverhandler, while another function is running

拥有回忆 提交于 2019-12-13 03:44:51
问题 I'm trying to open an UI, that's asking the user for two variable, and on "ok", close the ui, and execute a function with that two variables as parameter... My problem is that the ui remains open, and the code from the serverhandler is executing in a loop until the ui is open. If I don't see any loop in my code, if I execute the same function directly without ui, it is doing well... I miss something on my handler ? function doGet() { var app = UiApp.createApplication(); var mygrid = app

How to add large number of event notification reminder via Google Calendar API using PHP?

蹲街弑〆低调 提交于 2019-12-13 03:32:07
问题 I've to add one event notification inside of the calendar of my users they all have an account of my Google Apps. The number of my users are for now 200 but it will increase to 1500. How can I add via PHP from Google Calendar API all those notifications? The secondary objective is that all the users that has the mobile configuration will also receive the sms notification. My issue is that if I launch a script now to add 200 notifications to an event that starts in 5 minutes, it will take a

Google Scripts Trigger not firing

烂漫一生 提交于 2019-12-13 02:27:38
问题 I'm struggling to get my script to auto-run at 6AM (ish). I have the trigger set up to run this script, "Time-Driven", on a "day timer" between "6-7 am". I'm getting no failure notifications (set up to email to me immediately), but the script isn't running. It works exactly as I want it to when I manually run it, but the whole point was to automate it, so I'm not sure what I am doing wrong here. I looked up other instances, and they seem to have been fixed by deleting and re-adding the

Google Apps SSO - First and Last Name with OAuth 2 without using Google+

ぃ、小莉子 提交于 2019-12-13 02:25:54
问题 I'm trying to implement Google Apps SSO using OAuth 2. I'm using the Google PHP Client Library for this purpose. I set the scope to 'email' and 'profile' during the authentication: $this->client->setScopes('email', 'profile'); I'm able to get the email address with verifyIdToken, and the first name and the last name using Google Plus. if ($this->client->getAccessToken()) { $tokenData = $this->client->verifyIdToken()->getAttributes(); // Email: $tokenData['payload']['email'] $plus = new