Member-only story
Google Form Java Client API — Creating a Form and Reading Responses
In this tutorial, we will use the Goole Form Java Client API to create, update and read responses from a Google Form configured as a Quiz. Code Provided.
Why?
Google Form API has been published recently after extensive usage and testing in beta from several early adopters. Those APIs are really powerful. In several projects I’ve worked on there was the need for a configurable user input form.
For lots of projects, I had to build a custom “form-builder”, that had to render a form with configurable fields. An example is an anamnesis questionnaire for the vaccine registration that we built recently while I was working in DXC. Those kinds of questions change very often and need to be configurable.
Despite building a feature like this could be fun and a nice programming exercise, when it comes to costs, several factors push through the usage of an already made on-premise solution such as Google Form API. To enucleate a few of the major advantages: standardized user experience, zero maintenance costs, and easy configuration and access through already built clients for every programming language, as we will see in the following chapters using Java.