google.script object in Javascript - google-apps-script

I'm working on google app script. There's a statement "google.script is a client-side JavaScript API" in official document
However, I've search throughout internet and cannot find any document about "google.script" API.
I know there're several functions(or properties) such as
google.script.run
google.script.sandbox
google.script.host
because they appear in official examples.
But I want to know more details about this API.
Any help?
Thanks in advance!

Check if this is what you need. Communicate with server functions

Related

Third-party conferencing in Google Calendar from Google Apps Script

Is it possible to add third-party conferencing via Google Apps Script yet?
I'm referring to the functionality mentioned here: https://www.blog.google/products/g-suite/bring-teams-together-new-g-suite-integrations/
If not, is there any way to get access to it e.g. getting whitelisted?
Posting for documentation.
After going over the event documentation there does not seem to be a way to programmatically work with third-party conferencing. I created a feature request, this link will serve to keep track of updates on this issue.

How to use Telegram API in Windows Phone 8?

I would like to use Telegram API for Windows Phone 8. Though unlike other platforms, Telegram doesn't provide source code for Windows Phone. This is unfortunate because it creates a lot of problems for those who want to use it. From my research people mention using REST Service to accomplish that. Though no one showed any exact solution for how to accomplish it. I also read about using RPC calls to accomplish it. I don't know how to do that and I would greatly appreciate someone who could explain step by step to how to implement Telegram in ones app. Big Thanks!
If you need to see source code of an app using the Telegram API you should take a look at github.
There are a lot of apps there using this API:
API, Protocol documentation
Documentation for Telegram API is available here: http://core.telegram.org/api
Documentation for MTproto protocol is available here: http://core.telegram.org/mtproto
Take a look at this one https://telegram.org/apps#telegram-for-wp
You can browser their source code there downloading the zip. Unfortunatelly Stackoverflow does not permit we post a step by step walkthrough of using an API.

Getting Google+ Domain API to work in Google Apps Script

I have read loads of good documentation and example for getting external API's to work in Google Apps Script and also access Google API's with OAuth and have successfully integrated them. I can't however find any help with getting the Google+ Domains API https://developers.google.com/+/domains/ working in GAS.
I understand its a little different as it has the capability to do domain wide delegation of authority (which is what I want).
If anyone can help point me in the right direction that would be great.
Many thanks.
I have created a short sample code for the Google+ Domains API with Apps Script.
Please see the gist below.
https://gist.github.com/soundTricker/7130533
Sorry to say, but it's not possible to edit data on other users in the domain with the "Google+ Domains Service"
It tells you in the second part on the first page:
https://developers.google.com/apps-script/advanced/plus-domains
"This service doesn't support the domain-wide delegation feature in the underlying API. This means that domain admininstrators are not able to run a script on behalf of users in their domain."
This is really sad, it would have been so nice if it was possible! Please G00glez fix this =)

jsPDF server side usage

I really like the look of jsPDF but I can't seem to find any documentation for server side usage. The page here seems to suggest that this is possible, but the link for an example is broken or no longer exists. I would really like to use this library in a Google Apps Script project if possible.
The new home for jsPDF is here. Note that the "Server-side will work anywhere" promise is no longer presented. Chances are that it would work on Node.js, for example, but since Apps-Script is an incomplete javascript implementation it might not work there.
You can generate PDF files from within Apps-Script already. If the subject document is in Google Drive, then you can use getAs("application/pdf") to request the document as a PDF. (If it's not a Google Drive document, then first turn it into one.) Read over 4 ways to do Mail Merge using Google Apps Script, method 3, for an example.

google-drive-sdk : call google-drive-sdk

I am new using google scripts and drive-sdk.
I'd like to call the copy functionality of drive-sdk. When I try it, I get a message that says I need authentication.
Where can I find an example of how can I authenticate from a google script to authenticate de drive-sdk?
Thanks in advance.
Biagio
Have a look at the Google's Drive SDK docs regarding authentication.
https://developers.google.com/drive/quickstart-php is a good example in PHP. other languages they have quickstart examples for: Java, Python, .NET, Ruby, Javascript, Go, and Objective-C/iOS
First, view Google's information on authorising with the Drive API.
Then, choose which language you wish to use, I would reccomend JavaScript (or Node.js) if you want to play around or are making a web app.
If you wish, you can view a simplified explanation of the OAuth2.0 flow.
To clarify, the basic steps you can use to get going in JavaScript (as an example) are:
View this official Google getting started page
Set up the Drive API in the Google Developers Console
Copy the code from the getting started page
Ensure you place your ClientID from the Google Developer console into the copied code
Install Python if you haven't already (version 2 or 3)
Start the web server using Python (python -m SimpleHTTPServer 8000 for version 2) and load 'http://localhost:8000/quickstart.html' into your web browser