import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
you_can_book_me: {
type: "app",
app: "you_can_book_me",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.youcanbook.me/v1/${this.you_can_book_me.$auth.account_id}/remoteaccounts`,
auth: {
username: `${this.you_can_book_me.$auth.email}`,
password: `${this.you_can_book_me.$auth.api_key}`,
},
})
},
})
You Can Book Me uses API keys for authentication. When you connect your You Can Book Me account, Pipedream securely stores the keys so you can easily authenticate to You Can Book Me APIs in both code and no-code steps.
To retrieve your Account ID and API Key,
You Can Book Me requires their users enter their You Can Book Me email in order to connect to their API. For more info, refer to You Can Book Me’s documentation.