with Easypromos and ProProfs Quiz Maker?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
easypromos: {
type: "app",
app: "easypromos",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.easypromosapp.com/v2/promotions`,
headers: {
Authorization: `Bearer ${this.easypromos.$auth.api_key}`,
},
})
},
})
The ProProfs Quiz Maker API lets you manage quizzes, questions, and results programmatically. With it, you can automate the creation of quizzes, extract quiz data, and integrate quiz results with other systems. On Pipedream, you can create workflows that trigger on a specific event, such as a new quiz completion, and connect with hundreds of other apps to streamline your processes or enhance your data analysis.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
proprofs_quiz_maker: {
type: "app",
app: "proprofs_quiz_maker",
}
},
async run({steps, $}) {
const data = {
"token": `${this.proprofs_quiz_maker.$auth.api_key}`,
"username": `${this.proprofs_quiz_maker.$auth.username}`,
}
return await axios($, {
method: "post",
url: `https://www.proprofs.com/api/classroom/v1/reports/users/`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})