Get insights quickly, with Google Forms. Easily create and share online forms and surveys, and analyze responses in real-time.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Creates a new text question in a Google Form. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_forms: {
type: "app",
app: "google_forms",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/oauth2/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.google_forms.$auth.oauth_access_token}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})