with AppsFlyer and Uber Direct?
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
uber_direct: {
type: "app",
app: "uber_direct",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.uber.com/v1/customers/${this.uber_direct.$auth.customer_id}/deliveries`,
headers: {
Authorization: `Bearer ${this.uber_direct.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
})
},
})