[Music]
hello and welcome to introducing the
forms api i'm christian schalk a google
developer advocate and in this
presentation i'll be providing a general
overview of the new forms api including
what use cases it supports as well as a
technical overview of the api itself
the new google forms api builds on the
power of google forms by providing
programmatic access for managing forms
acting on responses and empowering
developers to build powerful
integrations with forums
the api supports two key use cases they
are form creation and editing such as
automated form generation from question
banks or other data back-ends
and reaction to form responses
automations can act on incoming
responses enabling things like real-time
dashboards or visualizations or
triggering business workflows based on
the response data
here are some key use cases for the
forms api
the first deals with education
automation integrations and these
include integrations with learning
management systems
custom form or quiz generation from
question banks
and student tracking with real-time
dashboards
another important set of use cases deal
with
customer management and support
these are
auto generation of surveys or forms
based on customer data
and triggering notifications and
processes based on responses from
customers
a third very important set of use cases
deal with data analysis and
visualizations these allow you to create
custom visualizations with response data
and to leverage push notifications to
update the visualizations in real time
in order to start using the api you must
first
enable the forms api in your gcp project
create api client credentials including
an api key client id and secret
these will be used for all subsequent
requests to the api afterwards
for these steps it's recommended to
consult the forms api setup guide in the
api documentation
once you are set up to use the api in
either a desktop or web configuration
you can use any of its nine api methods
the first method to try can be
forms.create
it uses an http post with a json body
where you can specify both the title and
other form details
successful creation of the new form the
response will contain details about the
new form
a next method to try can be forms.get
it uses an http get with the form id
included in the url
the response will contain details about
the requested form
one of the most used methods is
forms.batch update it allows for
creating and editing of both forms
settings and form fields
it uses an atp post with a json body
specifying the update details here's an
example of updating a form to be a quiz
and the response will contain details
about the update
to retrieve a list of forms responses
use the
forms.responses.list method
it uses an hp get with the requested
form id along with the trailing slash
responses in the url
the response will contain the form
responses
and to retrieve a single form response
use the
forms.responses.get method
it also uses an http get but with both
the form id and response id in the
request url
the response will contain the requested
form response info
what are forms watches
forms api watches allow applications to
subscribe to cloud pub sub notifications
when form change events occur
event types include schema which track
changes to form content or settings and
response i.e when form responses are
submitted
here's an example of the
forms.watches.create method
it uses an http post with the json body
which includes the cloud pub sub topic
and which event type to watch for
the response will indicate that the new
watch has been activated
and here are all four watches methods
for creating deleting listing and
renewing forms watches
before using these you'll want to
consult the setup and receive push
notifications guide in the api
documentation for more information
this concludes the forms api
introduction presentation for more
information on the forms api consult
these helpful links
thanks for watching