import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
countly: {
type: "app",
app: "countly",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.countly.$auth.server_url}/o/users/me`,
headers: {
"accept": `application/json`,
},
params: {
api_key: `${this.countly.$auth.api_key}`,
},
})
},
})
Countly uses API keys for authentication. When you connect your Countly account, Pipedream securely stores the keys so you can easily authenticate to Countly APIs in both code and no-code steps.