The Thanks.io API lets you automate the sending of personalized postcards and letters. This API can be harnessed to craft tailored outreach campaigns, customer appreciation notes, or event-based mailings. By integrating with Pipedream, you can create intelligent, event-driven workflows that trigger mailings based on user activity, data changes, or milestones achieved in other apps, streamlining the way businesses and developers connect with their audiences physically.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
thanks_io: {
type: "app",
app: "thanks_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.thanks.io/api/v2/ping`,
headers: {
Authorization: `Bearer ${this.thanks_io.$auth.oauth_access_token}`,
},
})
},
})
Customer Appreciation Workflow: Automate the sending of thank you postcards to customers after they make a purchase. Trigger a Thanks.io postcard dispatch by connecting Pipedream to an e-commerce platform, like Shopify, capturing new order events.
Birthday Club Mailing: Build a workflow that sends out personalized birthday cards. Use a CRM platform, such as HubSpot, integrated with Pipedream to trigger a Thanks.io mailing each time a contact's birthday is approaching, fostering customer loyalty.
Real Estate Follow-Up: For real estate agents, automate follow-ups with prospects or clients post-viewing. Connect a scheduling app like Calendly to Pipedream, triggering a Thanks.io mailer when a viewing is completed, adding a personal touch to the home buying process.
Thanks.io uses OAuth authentication. When you connect your Thanks.io account, Pipedream will open a popup window where you can sign into Thanks.io and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Thanks.io API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://dashboard.thanks.io/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://dashboard.thanks.io/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}}