with Nexudus and Checkout.com?
The Nexudus API is a powerful interface for managing coworking spaces, enabling you to automate tasks related to billing, booking, customer management, and more. With Pipedream, you can connect the Nexudus API to hundreds of other apps and create custom automation workflows. Whether you need to sync member data, automate billing processes, or manage space availability, Pipedream provides the tools to streamline operations and integrate with other services seamlessly.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nexudus: {
type: "app",
app: "nexudus",
}
},
async run({steps, $}) {
return await axios($, {
url: ` https://spaces.nexudus.com/api/sys/users`,
auth: {
username: `${this.nexudus.$auth.email}`,
password: `${this.nexudus.$auth.password}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
checkout_com: {
type: "app",
app: "checkout_com",
}
},
async run({steps, $}) {
const timestamp = Date.now()
const data = {
"email": `test-${timestamp}@example.com`
}
return await axios($, {
method: "post",
url: `https://api.${this.checkout_com.$auth.authorization_server}/customers`,
headers: {
Authorization: `Bearer ${this.checkout_com.$auth.oauth_access_token}`,
"accept": `application/json`,
},
data,
})
},
})