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}`,
},
})
},
})
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.