Class FormsResource
The "forms" collection of methods.
Inherited Members
Namespace: Google.Apis.Forms.v1
Assembly: Google.Apis.Forms.v1.dll
Syntax
public class FormsResource
Constructors
FormsResource(IClientService)
Constructs a new resource.
Declaration
public FormsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClient |
service |
Properties
Responses
Gets the Responses resource.
Declaration
public virtual FormsResource.ResponsesResource Responses { get; }
Property Value
Type | Description |
---|---|
Forms |
Watches
Gets the Watches resource.
Declaration
public virtual FormsResource.WatchesResource Watches { get; }
Property Value
Type | Description |
---|---|
Forms |
Methods
BatchUpdate(BatchUpdateFormRequest, string)
Change the form with a batch of updates.
Declaration
public virtual FormsResource.BatchUpdateRequest BatchUpdate(BatchUpdateFormRequest body, string formId)
Parameters
Type | Name | Description |
---|---|---|
Batch |
body | The body of the request. |
string | formId | Required. The form ID. |
Returns
Type | Description |
---|---|
Forms |
Create(Form)
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.
Declaration
public virtual FormsResource.CreateRequest Create(Form body)
Parameters
Type | Name | Description |
---|---|---|
Form | body | The body of the request. |
Returns
Type | Description |
---|---|
Forms |
Get(string)
Get a form.
Declaration
public virtual FormsResource.GetRequest Get(string formId)
Parameters
Type | Name | Description |
---|---|---|
string | formId | Required. The form ID. |
Returns
Type | Description |
---|---|
Forms |
SetPublishSettings(SetPublishSettingsRequest, string)
Updates the publish settings of a form. Legacy forms aren't supported because they don't have the
publish_settings
field.
Declaration
public virtual FormsResource.SetPublishSettingsRequest SetPublishSettings(SetPublishSettingsRequest body, string formId)
Parameters
Type | Name | Description |
---|---|---|
Set |
body | The body of the request. |
string | formId | Required. The ID of the form. You can get the id from |
Returns
Type | Description |
---|---|
Forms |