import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
onehash: {
type: "app",
app: "onehash",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.onehash.$auth.api_url}/api/resource/Contact`,
headers: {
"authorization": `token ${this.onehash.$auth.api_key}:${this.onehash.$auth.api_secret}`,
"accept": `*/*`,
},
})
},
})
OneHash uses API keys for authentication. When you connect your OneHash account, Pipedream securely stores the keys so you can easily authenticate to OneHash APIs in both code and no-code steps.
To retrieve your API Key and API Secret,