import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
attractwell: {
type: "app",
app: "attractwell",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.attractwell.com/api/v1/campaigns`,
headers: {
Authorization: `Bearer ${this.attractwell.$auth.oauth_access_token}`,
},
})
},
})
Emit new event when a contact becomes a new member of a vault.
Emit new event when a new registration for an event takes place.
Emit new event when a lead is gained from a landing page.
AttractWell uses OAuth authentication. When you connect your AttractWell account, Pipedream will open a popup window where you can sign into AttractWell and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any AttractWell API.
Pipedream requests the following authorization scopes when you connect your account:
GEThttps://attractwell.com/app/oauth/authorize?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=codePOSThttps://api.attractwell.com/api/v1/oauth/grantaccept: application/jsonContent-Type: application/x-www-form-urlencodedclient_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=authorization_code&redirect_uri={{oauth.redirect_uri}}&code={{oauth.code}}POSThttps://api.attractwell.com/api/v1/oauth/refreshcontent-type: application/x-www-form-urlencodedaccept: application/jsongrant_type=refresh_token&refresh_token={{oauth.refresh_token}}