with Lemon Squeezy and OneLogin?
The Lemon Squeezy API lets you manage and sell digital products with ease. On Pipedream, you can integrate Lemon Squeezy with your sales, marketing, and support tools to automate tasks like customer follow-ups, license management, and sales reporting. With Pipedream's serverless platform, you can create workflows that trigger on Lemon Squeezy events or schedule tasks, process data, and connect to a vast array of other apps and services without writing backend infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lemon_squeezy: {
type: "app",
app: "lemon_squeezy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.lemonsqueezy.com/v1/users/me`,
headers: {
Authorization: `Bearer ${this.lemon_squeezy.$auth.api_key}`,
"Accept": `application/vnd.api+json`,
"Content-Type": `application/vnd.api+json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
onelogin: {
type: "app",
app: "onelogin",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.onelogin.$auth.subdomain}.onelogin.com/auth/rate_limit`,
headers: {
Authorization: `Bearer ${this.onelogin.$auth.oauth_access_token}`,
},
})
},
})