with Reward Sciences and Airtop?
Emit new event when a new session is created in Airtop. See the documentation
Create a new browser window in an active session. See the documentation
Extract data or ask questions about page content using AI. See the documentation
The Reward Sciences API enables the integration of loyalty and rewards functionalities into your services. With it, you can create and manage rewards programs, automate point distribution, track user activities, and redeem rewards. On Pipedream, you can tap into these capabilities to build automated workflows that interact with other apps, trigger actions based on events, and manipulate data to enhance customer engagement.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
reward_sciences: {
type: "app",
app: "reward_sciences",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.rewardsciences.com/reward_categories`,
headers: {
Authorization: `Bearer ${this.reward_sciences.$auth.api_token}`,
"Accept": `application/vnd.rewardsciences.v1+json`,
"Content-Type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
airtop: {
type: "app",
app: "airtop",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.airtop.ai/api/v1/sessions`,
headers: {
Authorization: `Bearer ${this.airtop.$auth.api_key}`,
},
params: {
offset: `0`,
limit: `10`,
},
})
},
})