import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
matrix: {
type: "app",
app: "matrix",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.matrix.$auth.homeserver}/_matrix/client/v3/profile/${this.matrix.$auth.user_id}`,
headers: {
Authorization: `Bearer ${this.matrix.$auth.access_token}`,
},
})
},
})
Matrix uses API keys for authentication. When you connect your Matrix account, Pipedream securely stores the keys so you can easily authenticate to Matrix APIs in both code and no-code steps.