Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Google_Service_Script_Scripts_Resource Class Reference

The "scripts" collection of methods. More...

Inheritance diagram for Google_Service_Script_Scripts_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 run ($scriptId, Google_Service_Script_ExecutionRequest $postBody, $optParams=array())
 Runs a function in an Apps Script project that has been deployed for use with the Apps Script Execution API.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "scripts" collection of methods.

Typical usage is: $scriptService = new Google_Service_Script(...); $scripts = $scriptService->scripts;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ run()

Google_Service_Script_Scripts_Resource::run ( $scriptId,
Google_Service_Script_ExecutionRequest $postBody,
$optParams = array() )

Runs a function in an Apps Script project that has been deployed for use with the Apps Script Execution API.

This method requires authorization with an OAuth 2.0 token that includes at least one of the scopes listed in the Authentication 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. (scripts.run)

Parameters
string$scriptIdThe project key of the script to be executed. To find the project key, open the project in the script editor, then select File > Project properties.
Google_ExecutionRequest$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Script_Operation

The documentation for this class was generated from the following file: