google apps script - How to run GAS from Eclipse 4.3 -


i installed eclipse , google plugin according to

https://developers.google.com/eclipse/

https://developers.google.com/eclipse/docs/getting_started

https://developers.google.com/eclipse/docs/install-eclipse-4.3

i imported gas files google drive. show projects.

but can't find how can run , publish application. can tell me how?

seems maybe answer can obtained here: using execution api, on google app scripts guide website.

although don't know needs done in eclipse connect google execution api.

here's need on google drive side: (i call google app scripts editor: gsuite)

for understanding many of following steps see google target project execution api quickstart page.

  1. in gsuite open project intend import.

  2. set security scopes want google, explained below:
    2.1 in gsuite select file -> project properties: scopes tab.
    2.2 in eclipse set scopes according 2.1 [to completed]

  3. set google project api executable:
    3.1 publish: in gsuite in project, select publish->deploy api executable, 3.1.1 create new version , select deploy. 3.1.2 mark down script id, or see again reselecting ->deploy executable.

    3.2 set google developer console project: 3.2.1 developer console project in google cloud 3.2.2 have "app" (not sure mean) , script share same developer console project. (not sure done or how) 3.2.3 in developer console project - enable google apps script execution api 3.2.4 in developer console project - create valid client id (not sure how)

  4. call execution api, in application code of dev console project. 4.1 in application code, create oauth access token, clientid , scopes. 4.2 in application code, build regular post request google execution rest api, including: scriptid, function name, function parameters if any. 4.3 send post request along oauth token in header. can use client library service or use basic authentication post call. 4.4 allow 6 minutes execution 4.5 in application code, retrieve script's return-value if expected.

  5. set eclipse run script via execution api...

if can edit answer , complete instructions on eclipse side grateful.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -