with Demandbase and Google Marketplace?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
demandbase: {
type: "app",
app: "demandbase",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.insideview.com/api/v1/admin/usage`,
headers: {
"accesstoken": `${this.demandbase.$auth.oauth_access_token}`,
"accept": `application/json`,
},
params: {
period: `year`,
start: `2023`,
end: `2025`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_marketplace: {
type: "app",
app: "google_marketplace",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://appsmarket.googleapis.com/appsmarket/v2/licenseNotification/${this.google_marketplace.$auth.application_id}`,
headers: {
Authorization: `Bearer ${this.google_marketplace.$auth.oauth_access_token}`,
},
})
},
})