import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rize: {
type: "app",
app: "rize",
}
},
async run({steps, $}) {
const data = {
"query": `query CurrentUser {
currentUser {
email
}
}`,
}
return await axios($, {
method: "post",
url: `https://api.rize.io/api/v1/graphql`,
headers: {
Authorization: `Bearer ${this.rize.$auth.api_key}`,
},
data,
})
},
})
Rize uses API keys for authentication. When you connect your Rize account, Pipedream securely stores the keys so you can easily authenticate to Rize APIs in both code and no-code steps.