Parma is a minimalistic CRM that helps you remember who your customers are, what they like, and when you last connected.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
parma: {
type: "app",
app: "parma",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.parma.ai/api/v1/users/me`,
headers: {
Authorization: `Bearer ${this.parma.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
"Accept": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})