import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wbiztool: {
type: "app",
app: "wbiztool",
}
},
async run({steps, $}) {
const data = {
"client_id": `${this.wbiztool.$auth.api_client_id}`,
"api_key": `${this.wbiztool.$auth.api_key}`,
}
return await axios($, {
method: "post",
url: `https://wbiztool.com/api/v1/me/`,
data,
})
},
})
WbizTool uses API keys for authentication. When you connect your WbizTool account, Pipedream securely stores the keys so you can easily authenticate to WbizTool APIs in both code and no-code steps.