class Forms extends Resource (View source)

The "forms" collection of methods.

Typical usage is:

 $formsService = new Google\Service\Forms(...);
 $forms = $formsService->forms;

Methods

batchUpdate(string $formId, BatchUpdateFormRequest $postBody, array $optParams = [])

Change the form with a batch of updates. (forms.batchUpdate)

create(Form $postBody, array $optParams = [])

Create a new form using the title given in the provided form message in the request. Important: Only the form.info.title and form.info.document_title fields are copied to the new form. All other fields including the form description, items and settings are disallowed. To create a new form and add items, you must first call forms.create to create an empty form with a title and (optional) document title, and then call forms.update to add the items.

get(string $formId, array $optParams = [])

Get a form. (forms.get)

Details

BatchUpdateFormResponse batchUpdate(string $formId, BatchUpdateFormRequest $postBody, array $optParams = [])

Change the form with a batch of updates. (forms.batchUpdate)

Parameters

string $formId

Required. The form ID.

BatchUpdateFormRequest $postBody
array $optParams

Optional parameters.

Return Value

BatchUpdateFormResponse

Exceptions

Exception

Form create(Form $postBody, array $optParams = [])

Create a new form using the title given in the provided form message in the request. Important: Only the form.info.title and form.info.document_title fields are copied to the new form. All other fields including the form description, items and settings are disallowed. To create a new form and add items, you must first call forms.create to create an empty form with a title and (optional) document title, and then call forms.update to add the items.

(forms.create)

Parameters

Form $postBody
array $optParams

Optional parameters.

Return Value

Form

Exceptions

Exception

Form get(string $formId, array $optParams = [])

Get a form. (forms.get)

Parameters

string $formId

Required. The form ID.

array $optParams

Optional parameters.

Return Value

Form

Exceptions

Exception