with FastField Mobile Forms and Google reCAPTCHA?
Validate a Google reCAPTCHA request (v2 or v3). See docs here
The FastField Mobile Forms API allows you to automate interactions with your mobile forms. Using this API on Pipedream, you can trigger workflows based on form submissions, fetch and push data to and from your forms, and integrate with other services to streamline data processing. It’s ideal for creating powerful, serverless workflows that react to form data in real-time, update databases, send notifications, or even generate reports.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
fastfield_mobile_forms: {
type: "app",
app: "fastfield_mobile_forms",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.fastfieldforms.com/services/v3/users`,
headers: {
Authorization: `Bearer ${this.fastfield_mobile_forms.$auth.session_token}`,
"X-Gatekeeper-SessionToken": `${this.fastfield_mobile_forms.$auth.session_token}`,
"FastField-API-Key": `${this.fastfield_mobile_forms.$auth.api_key}`,
},
})
},
})
Google reCAPTCHA API helps you detect abusive traffic on your website without any user friction. It does this by presenting CAPTCHA challenges to users they need to solve before submitting forms, ensuring these actions are not generated by bots. The API returns a score, helping you decide what action to take for your website: for instance, you might require further verification for low-scoring users. With Pipedream's ability to integrate with various APIs, you can create custom workflows that trigger upon the result of a reCAPTCHA verification, streamlining both security and user experience.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_recaptcha: {
type: "app",
app: "google_recaptcha",
}
},
async run({steps, $}) {
const data = {
"secret": `${this.google_recaptcha.$auth.secret}`,
"response": ``,
"remoteip": ``,
}
return await axios($, {
method: "post",
url: `https://www.google.com/recaptcha/api/siteverify`,
data,
})
},
})