Affinity is a collective intelligence CRM
With the Affinity API, you can build a variety of applications that work with
Affinity data, including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
affinity: {
type: "app",
app: "affinity",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.affinity.co/persons`,
auth: {
username: ``,
password: `${this.affinity.$auth.api_key}`,
},
params: {
term: `doe`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})