with DeployHQ and ReCharge?
Creates a new subscription allowing a customer to subscribe to a product. See the documentation
DeployHQ is a service that automates the deployment of your web applications. By integrating with version control systems, DeployHQ can automatically deploy code changes to various environments. Using the DeployHQ API on Pipedream, you can orchestrate deployments, manage your projects, and synchronize deployment activities with other tools in your toolchain. It opens up possibilities for custom deployment workflows, notifications, monitoring, and more, all connected within the Pipedream ecosystem.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
deployhq: {
type: "app",
app: "deployhq",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.deployhq.$auth.account_name}.deployhq.com/projects`,
headers: {
"Accept": `application/json`,
"Content-Type": `application/json`,
},
auth: {
username: `${this.deployhq.$auth.email}`,
password: `${this.deployhq.$auth.api_key}`,
},
})
},
})
The ReCharge API offers a programmatic entrance to the ReCharge ecosystem, a place where subscription-based e-commerce is managed with ease. Whether you're looking to synchronize customer data, manage subscriptions, or automate notifications, the API's endpoints enable you to seamlessly integrate subscription data into your business processes. With Pipedream's serverless execution model, you can craft workflows that respond to events in ReCharge, manipulate and route data, and trigger actions across your entire software stack. This opens doors to personalized customer experiences, streamlined operations, and data-driven decision-making.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
recharge: {
type: "app",
app: "recharge",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.rechargeapps.com/customers`,
headers: {
"X-Recharge-Access-Token": `${this.recharge.$auth.api_key}`,
},
})
},
})