The Encharge API lets you automate your marketing by managing contacts, sending emails, and tracking user actions. Using Pipedream's serverless platform, you can connect Encharge with other apps to create custom workflows. Trigger actions based on events, update user segments, or synchronize data across your marketing stack.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
encharge: {
type: "app",
app: "encharge",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.encharge.io/v1/accounts/info`,
headers: {
Authorization: `Bearer ${this.encharge.$auth.oauth_access_token}`,
},
})
},
})
Automated Lead Scoring and Tagging: When a user signs up on your platform, use Pipedream to trigger an Encharge workflow that scores the lead and tags them based on their activity. This can then tailor subsequent marketing efforts.
Sync New Users to a CRM: Once a new user is added in Encharge, automatically add them to your CRM platform, like Salesforce or HubSpot, with a Pipedream workflow. Keep all your user data in sync and accessible across your sales and marketing teams.
Email Campaign Triggered by User Behavior: Monitor user activity on your website or app. When a significant event occurs, such as a user completing a purchase, you can trigger an Encharge API call with Pipedream to send a personalized follow-up email or start a drip campaign.
Encharge uses OAuth authentication. When you connect your Encharge account, Pipedream will open a popup window where you can sign into Encharge and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Encharge API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://api.encharge.io/v1/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
POST
https://api.encharge.io/v1/oauth/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://api.encharge.io/v1/oauth/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}}