import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ayrshare: {
type: "app",
app: "ayrshare",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.ayrshare.com/api/user`,
headers: {
Authorization: `Bearer ${this.ayrshare.$auth.api_key}`,
},
})
},
})
Create a new User Profile under your Primary Profile. See the documentation
Ayrshare uses API keys for authentication. When you connect your Ayrshare account, Pipedream securely stores the keys so you can easily authenticate to Ayrshare APIs in both code and no-code steps.