with Facebook Graph API and AppsFlyer?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
facebook_graph_api: {
type: "app",
app: "facebook_graph_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.facebook.com/me/`,
headers: {
Authorization: `Bearer ${this.facebook_graph_api.$auth.oauth_access_token}`,
},
})
},
})
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`,
},
})
},
})