Formstack is a powerful API that allows you to build sophisticated forms and surveys. With Formstack, you can collect data from your users, process payments, and even send notifications. Formstack is perfect for businesses of all sizes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
formstack: {
type: "app",
app: "formstack",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.formstack.com/api/v2/form.json`,
headers: {
Authorization: `Bearer ${this.formstack.$auth.oauth_access_token}`,
},
})
},
})
Emit new event for each new form submission. See docs here
Create a new submission for the specified form. See docs here
Formstack uses OAuth authentication. When you connect your Formstack account, Pipedream will open a popup window where you can sign into Formstack and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Formstack API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://www.formstack.com/api/v2/oauth2/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
response_type=code
&
state={{oauth.state}}
POST
https://www.formstack.com/api/v2/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://www.formstack.com/api/v2/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}