import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
appsflyer: {
type: "app",
app: "appsflyer",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://hq1.appsflyer.com/api/pushapi/v1.0/fields/windowsphone`,
headers: {
Authorization: `Bearer ${this.appsflyer.$auth.api_token}`,
"accept": `application/json`,
},
})
},
})
AppsFlyer uses API keys for authentication. When you connect your AppsFlyer account, Pipedream securely stores the keys so you can easily authenticate to AppsFlyer APIs in both code and no-code steps.