Example #1
0
 /// <summary>Constructs a new Run request.</summary>
 public RunRequest(Google.Apis.Services.IClientService service, Google.Apis.Script.v1.Data.ExecutionRequest body, string scriptId)
     : base(service)
 {
     ScriptId = scriptId;
     Body     = body;
     InitParameters();
 }
Example #2
0
 /// <summary>Runs a function in an Apps Script project. The project must be deployed for use with the Apps
 /// Script API.
 ///
 /// This method requires authorization with an OAuth 2.0 token that includes at least one of the scopes listed
 /// in the [Authorization](#authorization) section; script projects that do not require authorization cannot be
 /// executed through this API. To find the correct scopes to include in the authentication token, open the
 /// project in the script editor, then select **File > Project properties** and click the **Scopes**
 /// tab.</summary>
 /// <param name="body">The body of the request.</param>
 /// <param name="scriptId">The script ID of the script to be executed. To find the script ID, open the project in the
 /// script editor and select **File > Project properties**.</param>
 public virtual RunRequest Run(Google.Apis.Script.v1.Data.ExecutionRequest body, string scriptId)
 {
     return(new RunRequest(service, body, scriptId));
 }