Projects
class Projects extends Resource (View source)
The "projects" collection of methods.
Typical usage is:
$scriptService = new Google\Service\Script(...);
$projects = $scriptService->projects;
Methods
Creates a new, empty script project with no script files and a base manifest file. (projects.create)
Gets a script project's metadata. (projects.get)
Gets the content of the script project, including the code source and metadata for each script file. (projects.getContent)
Get metrics data for scripts, such as number of executions and active users.
Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.
Details
Project
create(CreateProjectRequest $postBody, array $optParams = [])
Creates a new, empty script project with no script files and a base manifest file. (projects.create)
Project
get(string $scriptId, array $optParams = [])
Gets a script project's metadata. (projects.get)
Content
getContent(string $scriptId, array $optParams = [])
Gets the content of the script project, including the code source and metadata for each script file. (projects.getContent)
Metrics
getMetrics(string $scriptId, array $optParams = [])
Get metrics data for scripts, such as number of executions and active users.
(projects.getMetrics)
Content
updateContent(string $scriptId, Content $postBody, array $optParams = [])
Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.
(projects.updateContent)